diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-16 23:27:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-16 23:27:30 +0300 |
commit | d0bc46cd38aa82777621a99005a90d085e9821c3 (patch) | |
tree | 65c5345a70bf12779209c3bc9d3dc4851e93b76c /src/gui/sdlinput.cpp | |
parent | 9fc5e9b475388ef57de62143438eae6d0af7da3c (diff) | |
download | manaplus-d0bc46cd38aa82777621a99005a90d085e9821c3.tar.gz manaplus-d0bc46cd38aa82777621a99005a90d085e9821c3.tar.bz2 manaplus-d0bc46cd38aa82777621a99005a90d085e9821c3.tar.xz manaplus-d0bc46cd38aa82777621a99005a90d085e9821c3.zip |
Combine keyinput into one file.
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r-- | src/gui/sdlinput.cpp | 6 |
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); |