summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputmanager.h4
-rw-r--r--src/input/joystick.h2
-rw-r--r--src/input/keyboardconfig.cpp1
-rw-r--r--src/input/keyboardconfig.h3
-rw-r--r--src/input/keyevent.h5
-rw-r--r--src/input/keyinput.h4
6 files changed, 2 insertions, 17 deletions
diff --git a/src/input/inputmanager.h b/src/input/inputmanager.h
index 8611e19c3..595900303 100644
--- a/src/input/inputmanager.h
+++ b/src/input/inputmanager.h
@@ -27,7 +27,7 @@
#include <string>
#include <map>
-#include <SDL.h>
+#include <SDL_events.h>
const unsigned int KeyFunctionSize = 3;
@@ -39,8 +39,6 @@ const unsigned int KeyFunctionSize = 3;
#undef INPUT_MOUSE
#endif
-struct KeyData;
-
class Setup_Input;
enum KeyTypes
diff --git a/src/input/joystick.h b/src/input/joystick.h
index 528eb0c94..f5f97cc09 100644
--- a/src/input/joystick.h
+++ b/src/input/joystick.h
@@ -25,7 +25,7 @@
#include "input/inputevent.h"
-#include <SDL.h>
+#include <SDL_events.h>
#include <string>
#include <vector>
diff --git a/src/input/keyboardconfig.cpp b/src/input/keyboardconfig.cpp
index 87d7a8d69..3c14db805 100644
--- a/src/input/keyboardconfig.cpp
+++ b/src/input/keyboardconfig.cpp
@@ -23,7 +23,6 @@
#include "input/keyboardconfig.h"
#include "configuration.h"
-#include "logger.h"
#include "input/inputmanager.h"
diff --git a/src/input/keyboardconfig.h b/src/input/keyboardconfig.h
index f6152fa1a..39ecf8909 100644
--- a/src/input/keyboardconfig.h
+++ b/src/input/keyboardconfig.h
@@ -23,16 +23,13 @@
#ifndef INPUT_KEYBOARDCONFIG_H
#define INPUT_KEYBOARDCONFIG_H
-#include <SDL_types.h>
#include <SDL_keyboard.h>
#include "sdlshared.h"
#include "input/inputevent.h"
-#include <map>
#include <string>
-#include <vector>
union SDL_Event;
diff --git a/src/input/keyevent.h b/src/input/keyevent.h
index 24623bda4..cb96f45c9 100644
--- a/src/input/keyevent.h
+++ b/src/input/keyevent.h
@@ -21,13 +21,8 @@
#ifndef INPUT_KEYEVENT_H
#define INPUT_KEYEVENT_H
-#include "input/keydata.h"
-
#include <guichan/key.hpp>
#include <guichan/keyevent.hpp>
-#include <guichan/widget.hpp>
-
-#include <string>
class KeyEvent final : public gcn::KeyEvent
{
diff --git a/src/input/keyinput.h b/src/input/keyinput.h
index 590995e2c..9d744f01c 100644
--- a/src/input/keyinput.h
+++ b/src/input/keyinput.h
@@ -21,12 +21,8 @@
#ifndef INPUT_KEYINPUT_H
#define INPUT_KEYINPUT_H
-#include "input/keydata.h"
-
#include <guichan/keyinput.hpp>
-#include <string>
-
class KeyInput final : public gcn::KeyInput
{
public: