summaryrefslogtreecommitdiff
path: root/src/sdlshared.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-22 11:35:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commit07390a4c8dcde85602c1a91d3773061d67d169ab (patch)
tree2128313bf3f5612d036cc35d71b2867b276b54e2 /src/sdlshared.h
parent89f6264172de327a53db26cdc15b475ca3c7e62e (diff)
downloadplus-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.gz
plus-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.bz2
plus-07390a4c8dcde85602c1a91d3773061d67d169ab.tar.xz
plus-07390a4c8dcde85602c1a91d3773061d67d169ab.zip
add some more fixes for SDL2 compilation.
Diffstat (limited to 'src/sdlshared.h')
-rw-r--r--src/sdlshared.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sdlshared.h b/src/sdlshared.h
index 840283688..d06040220 100644
--- a/src/sdlshared.h
+++ b/src/sdlshared.h
@@ -50,11 +50,15 @@
#define SDLK_PRINT SDLK_PRINTSCREEN
#define SDLK_NUMLOCK SDLK_NUMLOCKCLEAR
#define SDLK_SCROLLOCK SDLK_SCROLLLOCK
+#define SDLK_LAST SDL_NUM_SCANCODES
-#else
+#define SDL_DEFAULT_REPEAT_DELAY 500
+
+#else // USE_SDL2
#define SDL_Window SDL_Surface
+#define SDL_JoystickNameForIndex SDL_JoystickName
-#endif
+#endif // USE_SDL2
-#endif
+#endif // SDLSHARED_H