aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_extra_keys.c
blob: 5bbb4b4e095d8878f6d93eeaecf1970d1c75b3f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <cub3d.h>
#include <stdint.h>

int8_t
	ft_f1_key(t_cub *clist)
{
	if (clist->minimap == 0)
	{
		clist->minimap = 1;
		ft_draw_scene(clist);
	}
	else if (clist->minimap == 1)
	{
		clist->minimap = 0;
		ft_draw_scene(clist);
	}
	return (0);
}