aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h3
-rw-r--r--inc/cub3d_defines.h8
-rw-r--r--inc/cub3d_structs.h1
3 files changed, 12 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index a691023..2362d07 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -74,6 +74,9 @@ 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);
+int ft_key_loop(t_cub *cl);
# endif
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 0c9a294..209d0bc 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -46,6 +46,14 @@
# endif
/*
+** ====== MOVE SPEED ======
+*/
+
+# define FT_MOVE_SPEED 0.1
+# define FT_STRAFE_SPEED 0.05
+# define FT_ROT_SPEED 0.07
+
+/*
** ====== SCREEN ======
*/
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 00f85d7..908b007 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;