aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_events.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 18:30:02 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-19 18:30:02 +0100
commit267d348e71d4a170ed6c0cca7426bca5b79d3356 (patch)
tree59e95b3af27058ccf067969d8bb4b026ba31ab8d /src/ft_key_events.c
parentmedia update (diff)
download42-cub3d-267d348e71d4a170ed6c0cca7426bca5b79d3356.tar.gz
42-cub3d-267d348e71d4a170ed6c0cca7426bca5b79d3356.tar.bz2
42-cub3d-267d348e71d4a170ed6c0cca7426bca5b79d3356.tar.xz
42-cub3d-267d348e71d4a170ed6c0cca7426bca5b79d3356.tar.zst
42-cub3d-267d348e71d4a170ed6c0cca7426bca5b79d3356.zip
It's going well
Diffstat (limited to 'src/ft_key_events.c')
-rw-r--r--src/ft_key_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 317715d..edacc42 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -36,6 +36,8 @@ int
return (ft_exit(0, (clist)));
else if (keycode == FT_F1_KEY || keycode == FT_TAB_KEY)
return (ft_f1_key(clist));
+ else if (keycode == FT_SPC_KEY && clist->plist.handles_weapon > -1)
+ return (ft_space_key(clist));
ft_insert_key(keycode, clist);
return (0);
}