blob: f333cd026747e9de80f77730b1dab1a03e482a9c (
plain)
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);
}
|