blob: 84f52703acbd9e5e981deff171aed29e557db83c (
plain)
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
|
/* ************************************************************************** */
/* LE - / */
/* / */
/* ft_click_close.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2020/02/09 15:12:16 by rbousset #+# ## ## #+# */
/* Updated: 2020/02/09 15:12:17 by rbousset ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include <libft.h>
#include <cub3d.h>
#include <mlx.h>
#include <stdlib.h>
int
ft_click_close(int keycode, t_cub *clist)
{
ft_printf("Button [%d] pressed\n", keycode);
clist->wlist->inited = 0;
ft_free_lists(clist);
return (exit(0));
}
|