#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); }