aboutsummaryrefslogtreecommitdiffstats
path: root/yage/data/input.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-02-01 16:40:12 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-02-01 16:40:12 +0000
commit681435f6f1001df8e106b6d1f2a5bc59bf4115c8 (patch)
tree64c31b78ac392ab80b7ed0a419c7efad6631d72b /yage/data/input.h
parent6c4772685909f1f47aa902532d955c77b8e8271d (diff)
downloadYAGE-681435f6f1001df8e106b6d1f2a5bc59bf4115c8.tar.gz
YAGE-681435f6f1001df8e106b6d1f2a5bc59bf4115c8.zip
Adding preprocessor stuff to make it compatible with windows
Diffstat (limited to 'yage/data/input.h')
-rw-r--r--yage/data/input.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/yage/data/input.h b/yage/data/input.h
index 866793d8..4d5e09b3 100644
--- a/yage/data/input.h
+++ b/yage/data/input.h
@@ -77,7 +77,19 @@ enum class key {
TAB = GLFW_KEY_TAB,
BACKSPACE = GLFW_KEY_BACKSPACE,
INSERT = GLFW_KEY_INSERT,
+#ifdef _WIN32
+#ifdef DELETE
+#define YAGE_DELETE_TMP DELETE
+#undef DELETE
+#endif
+#endif
DELETE = GLFW_KEY_DELETE,
+#ifdef _WIN32
+#ifdef YAGE_DELETE_TMP
+#define DELETE YAGE_DELETE_TMP
+#undef YAGE_DELETE_TMP
+#endif
+#endif
RIGHT = GLFW_KEY_RIGHT,
LEFT = GLFW_KEY_LEFT,
DOWN = GLFW_KEY_DOWN,