-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_hooks.c
More file actions
26 lines (24 loc) · 1.14 KB
/
ft_hooks.c
File metadata and controls
26 lines (24 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_hooks.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tarchimb <tarchimb@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/09 10:28:52 by tarchimb #+# #+# */
/* Updated: 2021/12/09 13:30:46 by tarchimb ### ########.fr */
/* */
/* ************************************************************************** */
#include "Includes/fdf.h"
int key_hook(int keycode, t_vars *vars, t_map *map)
{
if (keycode == 53)
{
(void)map;
//mlx_destroy_image(vars->mlx, vars->win);
//ft_free_all((void **)map->map_tab);
mlx_destroy_window(vars->mlx, vars->win);
exit(0);
}
return (0);
}