summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-17 00:41:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-17 00:41:13 +0300
commit9a85b675f326c956b2c87af296c724a68192d7cc (patch)
treeabe0fcd97cdc39e9e31daeda29e12b92acc97ee8 /src/gui/sdlinput.h
parente78036b3372e5773fac4207ea48bb61e2fd7873e (diff)
downloadmanaplus-9a85b675f326c956b2c87af296c724a68192d7cc.tar.gz
manaplus-9a85b675f326c956b2c87af296c724a68192d7cc.tar.bz2
manaplus-9a85b675f326c956b2c87af296c724a68192d7cc.tar.xz
manaplus-9a85b675f326c956b2c87af296c724a68192d7cc.zip
combine input into one file.
Diffstat (limited to 'src/gui/sdlinput.h')
-rw-r--r--src/gui/sdlinput.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h
index 1a19e8790..3454f2d9f 100644
--- a/src/gui/sdlinput.h
+++ b/src/gui/sdlinput.h
@@ -75,16 +75,14 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef GUI_SDLINPUT_H
-#define GUI_SDLINPUT_H
+#ifndef GUI_INPUT_H
+#define GUI_INPUT_H
#include "input/keyinput.h"
#include "input/mouseinput.h"
#include <SDL_events.h>
-#include "gui/base/input.hpp"
-
#include "input/mouseinput.h"
#include <queue>
@@ -145,9 +143,9 @@ namespace Key
} // namespace Key
/**
- * SDL implementation of Input.
+ * SDL implementation of SDLInput.
*/
-class SDLInput final : public gcn::Input
+class SDLInput final
{
public:
/**
@@ -170,21 +168,21 @@ public:
* only use SDL and plan sticking with SDL you can safely ignore this
* function as it in the SDL case does nothing.
*/
- void _pollInput() override final
+ void _pollInput()
{ }
KeyInput dequeueKeyInput2() A_WARN_UNUSED;
- KeyInput dequeueKeyInput() override final A_WARN_UNUSED
+ KeyInput dequeueKeyInput() A_WARN_UNUSED
{ return KeyInput(); }
- // Inherited from Input
+ // Inherited from SDLInput
- bool isKeyQueueEmpty() override final A_WARN_UNUSED;
+ bool isKeyQueueEmpty() A_WARN_UNUSED;
- bool isMouseQueueEmpty() override final A_WARN_UNUSED;
+ bool isMouseQueueEmpty() A_WARN_UNUSED;
- MouseInput dequeueMouseInput() override final A_WARN_UNUSED;
+ MouseInput dequeueMouseInput() A_WARN_UNUSED;
MouseInput dequeueMouseInput2() A_WARN_UNUSED;
@@ -220,4 +218,4 @@ protected:
bool mMouseInWindow;
};
-#endif // GUI_SDLINPUT_H
+#endif // GUI_INPUT_H