summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 19:03:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 19:03:44 +0300
commitde9becef10640810435ea7457a40bb2a4461c2fd (patch)
tree8d968a46aff577441ad55e89f54ff435bd450653 /src/gui/sdlinput.h
parentfaca5a085d096cad4f92d96ff285f4a90c7d82ba (diff)
downloadmanaverse-de9becef10640810435ea7457a40bb2a4461c2fd.tar.gz
manaverse-de9becef10640810435ea7457a40bb2a4461c2fd.tar.bz2
manaverse-de9becef10640810435ea7457a40bb2a4461c2fd.tar.xz
manaverse-de9becef10640810435ea7457a40bb2a4461c2fd.zip
Fix compilation with SDL 2.
Diffstat (limited to 'src/gui/sdlinput.h')
-rw-r--r--src/gui/sdlinput.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h
index b5454b7f7..f64f35134 100644
--- a/src/gui/sdlinput.h
+++ b/src/gui/sdlinput.h
@@ -84,6 +84,10 @@
#include <SDL_events.h>
+#ifdef USE_SDL2
+#include <SDL_keyboard.h>
+#endif // USE_SDL2
+
#include "input/mouseinput.h"
#include <queue>