summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui.cpp4
-rw-r--r--src/gui/sdlinput.cpp15
-rw-r--r--src/gui/sdlinput.h7
3 files changed, 4 insertions, 22 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index b897655e2..0b0290be4 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -426,7 +426,7 @@ bool Gui::handleKeyInput()
while (!mInput->isKeyQueueEmpty())
{
- const KeyInput keyInput = guiInput->dequeueKeyInput2();
+ const KeyInput keyInput = guiInput->dequeueKeyInput();
// Save modifiers state
mShiftPressed = keyInput.isShiftPressed();
@@ -988,7 +988,7 @@ void Gui::handleMouseInput()
BLOCK_START("Gui::handleMouseInput")
while (!mInput->isMouseQueueEmpty())
{
- const MouseInput mouseInput = guiInput->dequeueMouseInput2();
+ const MouseInput mouseInput = guiInput->dequeueMouseInput();
if (touchManager.processEvent(mouseInput))
{
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index ffb90a883..b0ac7d613 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -103,7 +103,7 @@ bool SDLInput::isKeyQueueEmpty() const
return mKeyInputQueue.empty();
}
-KeyInput SDLInput::dequeueKeyInput2()
+KeyInput SDLInput::dequeueKeyInput()
{
if (mKeyInputQueue.empty())
return KeyInput();
@@ -132,19 +132,6 @@ MouseInput SDLInput::dequeueMouseInput()
return mouseInput;
}
-MouseInput SDLInput::dequeueMouseInput2()
-{
- MouseInput mouseInput;
-
- if (mMouseInputQueue.empty())
- return MouseInput();
-
- mouseInput = mMouseInputQueue.front();
- mMouseInputQueue.pop();
-
- return mouseInput;
-}
-
void SDLInput::pushInput(const SDL_Event &event)
{
KeyInput keyInput;
diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h
index 8197aa110..6102de743 100644
--- a/src/gui/sdlinput.h
+++ b/src/gui/sdlinput.h
@@ -107,10 +107,7 @@ public:
*/
void pushInput(const SDL_Event &event);
- KeyInput dequeueKeyInput2() A_WARN_UNUSED;
-
- KeyInput dequeueKeyInput() A_WARN_UNUSED
- { return KeyInput(); }
+ KeyInput dequeueKeyInput() A_WARN_UNUSED;
// Inherited from SDLInput
@@ -120,8 +117,6 @@ public:
MouseInput dequeueMouseInput() A_WARN_UNUSED;
- MouseInput dequeueMouseInput2() A_WARN_UNUSED;
-
void simulateMouseClick(const int x, const int y,
const unsigned int button);