summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-18 19:47:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-18 19:47:28 +0300
commit7da95c7f4da447876458a0b1a17736b9a2865844 (patch)
tree4b6ac0ab5bc32a11234a5363de95d0cfec8cb7d5 /src/gui/windows/charselectdialog.cpp
parent515ce6c1413b5e3da131f3e4997abdc39c003a2c (diff)
downloadmanaplus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.gz
manaplus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.bz2
manaplus-7da95c7f4da447876458a0b1a17736b9a2865844.tar.xz
manaplus-7da95c7f4da447876458a0b1a17736b9a2865844.zip
Move inputaction into separate file.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp15
1 files changed, 8 insertions, 7 deletions
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());