From 7da95c7f4da447876458a0b1a17736b9a2865844 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 May 2014 19:47:28 +0300 Subject: Move inputaction into separate file. --- src/gui/windows/charselectdialog.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/gui/windows/charselectdialog.cpp') diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 74a135bab..73ebb90b6 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -28,6 +28,7 @@ #include "events/keyevent.h" +#include "input/inputaction.h" #include "input/keydata.h" #include "being/attributes.h" @@ -297,13 +298,13 @@ void CharSelectDialog::keyPressed(KeyEvent &event) const int actionId = event.getActionId(); switch (actionId) { - case Input::KEY_GUI_CANCEL: + case InputAction::GUI_CANCEL: event.consume(); action(ActionEvent(mSwitchLoginButton, mSwitchLoginButton->getActionEventId())); break; - case Input::KEY_GUI_RIGHT: + case InputAction::GUI_RIGHT: { event.consume(); int idx = mCharacterView->getSelected(); @@ -318,7 +319,7 @@ void CharSelectDialog::keyPressed(KeyEvent &event) break; } - case Input::KEY_GUI_LEFT: + case InputAction::GUI_LEFT: { event.consume(); int idx = mCharacterView->getSelected(); @@ -333,7 +334,7 @@ void CharSelectDialog::keyPressed(KeyEvent &event) break; } - case Input::KEY_GUI_UP: + case InputAction::GUI_UP: { event.consume(); int idx = mCharacterView->getSelected(); @@ -348,7 +349,7 @@ void CharSelectDialog::keyPressed(KeyEvent &event) break; } - case Input::KEY_GUI_DOWN: + case InputAction::GUI_DOWN: { event.consume(); int idx = mCharacterView->getSelected(); @@ -363,7 +364,7 @@ void CharSelectDialog::keyPressed(KeyEvent &event) break; } - case Input::KEY_GUI_DELETE: + case InputAction::GUI_DELETE: { event.consume(); const int idx = mCharacterView->getSelected(); @@ -375,7 +376,7 @@ void CharSelectDialog::keyPressed(KeyEvent &event) break; } - case Input::KEY_GUI_SELECT: + case InputAction::GUI_SELECT: { event.consume(); use(mCharacterView->getSelected()); -- cgit v1.2.3-60-g2f50