summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-16 23:27:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-16 23:27:30 +0300
commitd0bc46cd38aa82777621a99005a90d085e9821c3 (patch)
tree65c5345a70bf12779209c3bc9d3dc4851e93b76c /src/gui/sdlinput.cpp
parent9fc5e9b475388ef57de62143438eae6d0af7da3c (diff)
downloadmanaverse-d0bc46cd38aa82777621a99005a90d085e9821c3.tar.gz
manaverse-d0bc46cd38aa82777621a99005a90d085e9821c3.tar.bz2
manaverse-d0bc46cd38aa82777621a99005a90d085e9821c3.tar.xz
manaverse-d0bc46cd38aa82777621a99005a90d085e9821c3.zip
Combine keyinput into one file.
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r--src/gui/sdlinput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index 661be07c5..b61f858e8 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -154,7 +154,7 @@ void SDLInput::pushInput(const SDL_Event &event)
{
case SDL_KEYDOWN:
{
- keyInput.setType(gcn::KeyInput::PRESSED);
+ keyInput.setType(KeyInput::PRESSED);
convertKeyEventToKey(event, keyInput);
mKeyInputQueue.push(keyInput);
break;
@@ -162,7 +162,7 @@ void SDLInput::pushInput(const SDL_Event &event)
case SDL_KEYUP:
{
- keyInput.setType(gcn::KeyInput::RELEASED);
+ keyInput.setType(KeyInput::RELEASED);
convertKeyEventToKey(event, keyInput);
mKeyInputQueue.push(keyInput);
break;
@@ -170,7 +170,7 @@ void SDLInput::pushInput(const SDL_Event &event)
#ifdef USE_SDL2
case SDL_TEXTINPUT:
- keyInput.setType(gcn::KeyInput::PRESSED);
+ keyInput.setType(KeyInput::PRESSED);
keyInput.setKey(gcn::Key(Key::TEXTINPUT));
keyInput.setText(event.text.text);
mKeyInputQueue.push(keyInput);