diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-17 02:00:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-17 02:00:20 +0300 |
commit | d2b34e1d51d04288274eca0151de959817f037a2 (patch) | |
tree | 73fe2bccc54eb27884d1e1d78424c486e79d0111 /src/gui/sdlinput.cpp | |
parent | b1a2e2bc36735e61d903f31fd2d541b082970392 (diff) | |
download | mv-d2b34e1d51d04288274eca0151de959817f037a2.tar.gz mv-d2b34e1d51d04288274eca0151de959817f037a2.tar.bz2 mv-d2b34e1d51d04288274eca0151de959817f037a2.tar.xz mv-d2b34e1d51d04288274eca0151de959817f037a2.zip |
Move key into input directory.
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r-- | src/gui/sdlinput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index 33c15f5c7..d8a63b60c 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -171,7 +171,7 @@ void SDLInput::pushInput(const SDL_Event &event) #ifdef USE_SDL2 case SDL_TEXTINPUT: keyInput.setType(KeyInput::PRESSED); - keyInput.setKey(gcn::Key(Key::TEXTINPUT)); + keyInput.setKey(Key(Key::TEXTINPUT)); keyInput.setText(event.text.text); mKeyInputQueue.push(keyInput); break; @@ -315,7 +315,7 @@ void SDLInput::pushInput(const SDL_Event &event) void SDLInput::convertKeyEventToKey(const SDL_Event &event, KeyInput &keyInput) { - keyInput.setKey(gcn::Key(convertKeyCharacter(event))); + keyInput.setKey(Key(convertKeyCharacter(event))); keyInput.setShiftPressed(event.key.keysym.mod & KMOD_SHIFT); keyInput.setControlPressed(event.key.keysym.mod & KMOD_CTRL); keyInput.setAltPressed(event.key.keysym.mod & KMOD_ALT); |