From 3a6bed0d03a3e73a6ad2704d1f858174520863c6 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 17:36:01 +0100 Subject: window now closes --- src/ft_key_events.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/ft_key_events.c (limited to 'src/ft_key_events.c') diff --git a/src/ft_key_events.c b/src/ft_key_events.c new file mode 100644 index 0000000..f333cd0 --- /dev/null +++ b/src/ft_key_events.c @@ -0,0 +1,18 @@ +#include +#include +#include + +int +ft_key_event(int keycode, void *param) +{ + (void)param; + ft_printf("Key [%d] pressed\n", keycode); + if (keycode == 53) + { + /* ft_memdel(param->wlx); */ + /* ft_memdel(param->winptr); */ + /* ft_memdel(param); */ + exit(0); + } + return (0); +} -- cgit v1.2.3