aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 16:51:34 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 16:51:34 +0100
commit090bda7406b0a3d1692624cf464dd46fb781d55f (patch)
treeadcb05fd965a98d1f4fda9a2cdf2168d103a5a80 /inc
parentIt ain't much but it's honest work (diff)
download42-cub3d-090bda7406b0a3d1692624cf464dd46fb781d55f.tar.gz
42-cub3d-090bda7406b0a3d1692624cf464dd46fb781d55f.tar.bz2
42-cub3d-090bda7406b0a3d1692624cf464dd46fb781d55f.tar.xz
42-cub3d-090bda7406b0a3d1692624cf464dd46fb781d55f.tar.zst
42-cub3d-090bda7406b0a3d1692624cf464dd46fb781d55f.zip
Key defines for compatibility between Linux/Darwin
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 0ca7128..4f495d4 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -3,6 +3,22 @@
#include <inttypes.h>
+#ifndef FT_W_KEY
+#define FT_W_KEY 13
+#endif
+#ifndef FT_A_KEY
+#define FT_A_KEY 0
+#endif
+#ifndef FT_S_KEY
+#define FT_S_KEY 1
+#endif
+#ifndef FT_D_KEY
+#define FT_D_KEY 2
+#endif
+#ifndef FT_ESC_KEY
+#define FT_ESC_KEY 53
+#endif
+
typedef struct s_win
{
void *wlx;