1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <libft.h> #include <cub3d.h> #include <stdlib.h> 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); }