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); }