44# define KEY_ESCAPE 65307
48# define KEY_ENTER 65293
56# define KEY_ARROW_LEFT 65361
60# define KEY_ARROW_UP 65362
64# define KEY_ARROW_RIGHT 65363
68# define KEY_ARROW_DOWN 65364
struct s_data t_data
Definition data_structure.h:32
struct s_input t_input
Definition data_structure.h:42
void set_key(int keycode, t_input *input, bool set)
Set the input according to the keycode and the set value.
Definition ft_keys.c:18
bool is_mv_key(enum e_movement expected, int keycode)
Check if a keycode is a movement key.
Definition ft_keys.c:59
void toggle_key(int keycode, t_input *input)
Toggle the input according to the keycode.
Definition ft_keys.c:34
void change_fov(t_data *data, int keycode)
Change the FOV according to the keycode.
Definition ft_keys.c:75
e_movement
Structure used to define the type of movement with directions.
Definition ft_keys.h:34
@ MV_RIGHT
Definition ft_keys.h:37
@ MV_UP
Definition ft_keys.h:35
@ MV_LEFT
Definition ft_keys.h:36
@ MV_DOWN
Definition ft_keys.h:38