From 23f87c10db7e6b149e9e1f351e1a82516c545df7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Apr 2012 02:58:23 +0300 Subject: First step for dehardcode input handling in widgets. Now widgets can check for input event. --- src/gui/sdlinput.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui/sdlinput.h') diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h index af74534c3..c3c0628ff 100644 --- a/src/gui/sdlinput.h +++ b/src/gui/sdlinput.h @@ -68,6 +68,8 @@ #include #include +class KeyInput; + namespace Key { enum @@ -150,13 +152,15 @@ public: virtual void _pollInput() { } + virtual KeyInput dequeueKeyInput2(); + + virtual gcn::KeyInput dequeueKeyInput() + { return gcn::KeyInput(); } // Inherited from Input virtual bool isKeyQueueEmpty(); - virtual gcn::KeyInput dequeueKeyInput(); - virtual bool isMouseQueueEmpty(); virtual gcn::MouseInput dequeueMouseInput(); @@ -180,7 +184,7 @@ protected: */ int convertKeyCharacter(SDL_Event event); - std::queue mKeyInputQueue; + std::queue mKeyInputQueue; std::queue mMouseInputQueue; bool mMouseDown; -- cgit v1.2.3-60-g2f50