aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_events.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-02-14 21:00:02 +0100
committerRudy Bousset <rbousset@z2r4p1.le-101.fr>2020-02-14 21:00:02 +0100
commita95f7c219961b16be72febd645191e5a0d4aad4d (patch)
treea3a49e80b550742e4f9c5fe890bb6ef76ad2486e /src/ft_key_events.c
parentNew define .h (diff)
download42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.gz
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.bz2
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.xz
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.tar.zst
42-cub3d-a95f7c219961b16be72febd645191e5a0d4aad4d.zip
Good player spawn view for N and S, minimap bot left StarCraft style
Diffstat (limited to 'src/ft_key_events.c')
-rw-r--r--src/ft_key_events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 92928ea..395761e 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -32,6 +32,7 @@ static uint16_t
(tmp_code == 5) ? (keycode = UINT16_MAX) : 0;
(tmp_code == FT_ESC_KEY) ? (keycode = FT_ESC_KEY) : 0;
(tmp_code == FT_F1_KEY) ? (keycode = FT_F1_KEY) : 0;
+ (tmp_code == FT_TAB_KEY) ? (keycode = FT_TAB_KEY) : 0;
return (keycode);
}
@@ -66,7 +67,7 @@ int
}
else if (keycode == FT_ESC_KEY)
return (ft_exit(0, (clist)));
- else if (keycode == FT_F1_KEY)
+ else if (keycode == FT_F1_KEY || keycode == FT_TAB_KEY)
return (ft_f1_key(clist));
return (0);
}