summaryrefslogtreecommitdiff
path: root/src/sdlshared.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 21:18:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commita3082da9c7296bb18b7a6bc0424eb2a19d485ff6 (patch)
treecd07d091f69f5a3000aaddcbc8911d472b9137e7 /src/sdlshared.h
parent84189722a64c0794fbd918b4e6412908be2b7394 (diff)
downloadplus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.tar.gz
plus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.tar.bz2
plus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.tar.xz
plus-a3082da9c7296bb18b7a6bc0424eb2a19d485ff6.zip
second part with compilation fixes for SDL2.
Diffstat (limited to 'src/sdlshared.h')
-rw-r--r--src/sdlshared.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sdlshared.h b/src/sdlshared.h
index 2c872b404..70798d441 100644
--- a/src/sdlshared.h
+++ b/src/sdlshared.h
@@ -26,6 +26,24 @@
#define SDLKey SDL_Keycode
#define SDL_GetKeyState SDL_GetKeyboardState
#define SDL_HWSURFACE 0
+#define SDL_keysym SDL_Keysym
+
+#define KMOD_META KMOD_GUI
+#define SDLK_RMETA SDLK_RGUI
+#define SDLK_LMETA SDLK_LGUI
+#define SDLK_KP0 SDLK_KP_0
+#define SDLK_KP1 SDLK_KP_1
+#define SDLK_KP2 SDLK_KP_2
+#define SDLK_KP3 SDLK_KP_3
+#define SDLK_KP4 SDLK_KP_4
+#define SDLK_KP5 SDLK_KP_5
+#define SDLK_KP6 SDLK_KP_6
+#define SDLK_KP7 SDLK_KP_7
+#define SDLK_KP8 SDLK_KP_8
+#define SDLK_KP9 SDLK_KP_9
+#define SDLK_PRINT SDLK_PRINTSCREEN
+#define SDLK_NUMLOCK SDLK_NUMLOCKCLEAR
+#define SDLK_SCROLLOCK SDLK_SCROLLLOCK
#else