From 9a85b675f326c956b2c87af296c724a68192d7cc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Feb 2014 00:41:13 +0300 Subject: combine input into one file. --- src/gui/sdlinput.h | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'src/gui/sdlinput.h') 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 -#include "gui/base/input.hpp" - #include "input/mouseinput.h" #include @@ -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 -- cgit v1.2.3-60-g2f50