diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-31 13:41:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-31 13:41:23 +0300 |
commit | d593fa58e641aa90d7e1f0759299c59d2665cca6 (patch) | |
tree | bdbce97f8a9ad8fb1f80477ea603e0452daf4614 /src/gui/sdlinput.cpp | |
parent | 1072eecf0e9e9140796d24f82d077199b2a1d9e6 (diff) | |
download | ManaVerse-d593fa58e641aa90d7e1f0759299c59d2665cca6.tar.gz ManaVerse-d593fa58e641aa90d7e1f0759299c59d2665cca6.tar.bz2 ManaVerse-d593fa58e641aa90d7e1f0759299c59d2665cca6.tar.xz ManaVerse-d593fa58e641aa90d7e1f0759299c59d2665cca6.zip |
Move keyeventtype into separate 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 6d3121451..665617c8d 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -134,7 +134,7 @@ void SDLInput::pushInput(const SDL_Event &event) { case SDL_KEYDOWN: { - keyInput.setType(KeyInput::PRESSED); + keyInput.setType(KeyEventType::PRESSED); convertKeyEventToKey(event, keyInput); mKeyInputQueue.push(keyInput); break; @@ -142,7 +142,7 @@ void SDLInput::pushInput(const SDL_Event &event) case SDL_KEYUP: { - keyInput.setType(KeyInput::RELEASED); + keyInput.setType(KeyEventType::RELEASED); convertKeyEventToKey(event, keyInput); mKeyInputQueue.push(keyInput); break; @@ -150,7 +150,7 @@ void SDLInput::pushInput(const SDL_Event &event) #ifdef USE_SDL2 case SDL_TEXTINPUT: - keyInput.setType(KeyInput::PRESSED); + keyInput.setType(KeyEventType::PRESSED); keyInput.setKey(Key(Key::TEXTINPUT)); keyInput.setText(event.text.text); mKeyInputQueue.push(keyInput); |