15int handle_key_press(
int keycode,
t_game *game)
17 static t_handle_key_press func[ENUM_OTHER + 1] = {
18 quit_game, set_move_forward_flag, set_move_backward_flag,
19 set_strafe_left_flag, set_strafe_right_flag,
20 set_rotate_left_flag, set_rotate_right_flag, invalid_key};
24 while (i < ENUM_OTHER + 1)
26 func[i](keycode, game);
29 return (EXIT_SUCCESS);
32int handle_mouse(
int button,
int x,
int y,
t_game *game)
38 return (EXIT_SUCCESS);