Cub3D
 
Loading...
Searching...
No Matches
ft_keys.c File Reference
#include "cub3d.h"
#include "data_structure.h"
#include "ft_keys.h"
#include <stdbool.h>
Include dependency graph for ft_keys.c:

Functions

void set_key (int keycode, t_input *input, bool set)
 Set the input according to the keycode and the set value.
 
void toggle_key (int keycode, t_input *input)
 Toggle the input according to the keycode.
 
bool is_mv_key (enum e_movement expected, int keycode)
 Check if a keycode is a movement key.
 
void change_fov (t_data *data, int keycode)
 Change the FOV according to the keycode.