From 3843a3acf8553e3a01f3c2b80410ccf69142e23f Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 17 Feb 2020 19:14:45 +0100 Subject: Multi-key in progress --- inc/cub3d.h | 2 ++ inc/cub3d_structs.h | 1 + 2 files changed, 3 insertions(+) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index a691023..eacb997 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -74,6 +74,8 @@ int ft_d_key(t_cub *clist); int ft_f1_key(t_cub *clist); int ft_left_key(t_cub *clist); int ft_right_key(t_cub *clist); +int ft_key_release(int keycode, t_cub *clist); int8_t ft_check_ext(const char *filep, const char *ext); +int32_t ft_convert_keycode(const int32_t tmp_code); # endif diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 38472a6..83b38a7 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -111,6 +111,7 @@ typedef struct s_cub uint8_t w_side; uint8_t minimap; char errmsg[40]; + int32_t key_input[5]; struct s_win *wlist; struct s_player *plist; struct s_map *mlist; -- cgit v1.2.3