aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_extra_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_extra_keys.c')
-rw-r--r--src/ft_extra_keys.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c
index e694667..e99b32f 100644
--- a/src/ft_extra_keys.c
+++ b/src/ft_extra_keys.c
@@ -13,6 +13,8 @@
#include <cub3d.h>
#include <stdint.h>
#include <math.h>
+#include <time.h>
+#include <pthread.h>
int
ft_left_key(t_cub *clist)
@@ -65,3 +67,12 @@ int
}
return (0);
}
+
+int
+ ft_space_key(t_cub *clist)
+{
+ /* TODO: ft_sfx_weapon_fire(3) */
+ if (clist->plist.fire == 0)
+ clist->plist.fire = 1;
+ return (0);
+}