summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-18 17:57:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-18 17:57:37 +0300
commit515ce6c1413b5e3da131f3e4997abdc39c003a2c (patch)
treee09ec08d83cacb2012522e679323c140d95707c9 /src/input
parentbe320cc5c9ca819b42a7ad8ef9806051d9eef75a (diff)
downloadplus-515ce6c1413b5e3da131f3e4997abdc39c003a2c.tar.gz
plus-515ce6c1413b5e3da131f3e4997abdc39c003a2c.tar.bz2
plus-515ce6c1413b5e3da131f3e4997abdc39c003a2c.tar.xz
plus-515ce6c1413b5e3da131f3e4997abdc39c003a2c.zip
Move inputconditions into separate file.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputcondition.h54
-rw-r--r--src/input/inputmanager.cpp28
-rw-r--r--src/input/inputmanager.h27
-rw-r--r--src/input/keyboarddata.h628
4 files changed, 392 insertions, 345 deletions
diff --git a/src/input/inputcondition.h b/src/input/inputcondition.h
new file mode 100644
index 000000000..d1ce6db26
--- /dev/null
+++ b/src/input/inputcondition.h
@@ -0,0 +1,54 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2012-2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef INPUT_INPUTCONDITION_H
+#define INPUT_INPUTCONDITION_H
+
+namespace InputCondition
+{
+ enum Type
+ {
+ DEFAULT = 1, // default condition
+ ENABLED = 2, // keyboard must be enabled
+ NOINPUT = 4, // input items must be unfocused
+ NOAWAY = 8, // player not in away mode
+ NOSETUP = 16, // setup window is hidde
+ VALIDSPEED = 32, // valid speed
+ NOMODAL = 64, // modal windows inactive
+ NONPCINPUT = 128, // npc input field inactive
+ EMODS = 256, // game modifiers enabled
+ NOTARGET = 512, // no target/untarget keys
+ // pressed
+ NOFOLLOW = 1024, // follow mode disabled
+ INGAME = 2048, // game must be started
+ NOBUYSELL = 4096, // no active buy or sell dialogs
+ NONPCDIALOG = 8192, // no active npc dialog or
+ // dialog almost closed
+ NOTALKING = 16384, // player have no opened
+ // dialogs what prevent moving
+ SHORTCUT = 2 + 4 + 16 + 512 + 2048, // flags for shortcut keys
+ SHORTCUT0 = 2 + 4 + 16 + 512, // flags for shortcut keys
+ GAME = 2 + 4 + 8 + 16 + 64 + 2048, // main game key
+ GAME2 = 2 + 8 + 16 + 64 + 2048,
+ ARROWKEYS = 2 + 8 + 16 + 64 + 2048 + 4096 + 16384
+ };
+} // namespace InputCondition
+
+#endif // INPUT_INPUTCONDITION_H
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 0c99c0908..27d41e1fd 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -617,53 +617,53 @@ void InputManager::updateConditionMask()
{
mMask = 1;
if (keyboard.isEnabled())
- mMask |= COND_ENABLED;
+ mMask |= InputCondition::ENABLED;
if ((!chatWindow || !chatWindow->isInputFocused()) &&
!NpcDialog::isAnyInputFocused() &&
!InventoryWindow::isAnyInputFocused() &&
(!tradeWindow || !tradeWindow->isInpupFocused()))
{
- mMask |= COND_NOINPUT;
+ mMask |= InputCondition::NOINPUT;
}
if (!BuyDialog::isActive() && !SellDialog::isActive())
- mMask |= COND_NOBUYSELL;
+ mMask |= InputCondition::NOBUYSELL;
if (!player_node || !player_node->getAway())
- mMask |= COND_NOAWAY;
+ mMask |= InputCondition::NOAWAY;
if (!setupWindow || !setupWindow->isWindowVisible())
- mMask |= COND_NOSETUP;
+ mMask |= InputCondition::NOSETUP;
if (Game::instance() && Game::instance()->getValidSpeed())
- mMask |= COND_VALIDSPEED;
+ mMask |= InputCondition::VALIDSPEED;
if (gui && !gui->getFocusHandler()->getModalFocused())
- mMask |= COND_NOMODAL;
+ mMask |= InputCondition::NOMODAL;
const NpcDialog *const dialog = NpcDialog::getActive();
if (!dialog || !dialog->isTextInputFocused())
- mMask |= COND_NONPCINPUT;
+ mMask |= InputCondition::NONPCINPUT;
if (!dialog || dialog->isCloseState())
{
- mMask |= COND_NONPCDIALOG;
+ mMask |= InputCondition::NONPCDIALOG;
if (!InventoryWindow::isStorageActive())
- mMask |= COND_NOTALKING;
+ mMask |= InputCondition::NOTALKING;
}
if (!player_node || !player_node->getDisableGameModifiers())
- mMask |= COND_EMODS;
+ mMask |= InputCondition::EMODS;
if (!isActionActive0(Input::KEY_STOP_ATTACK)
&& !isActionActive0(Input::KEY_UNTARGET))
{
- mMask |= COND_NOTARGET;
+ mMask |= InputCondition::NOTARGET;
}
if (Game::instance())
- mMask |= COND_INGAME;
+ mMask |= InputCondition::INGAME;
if (!player_node || player_node->getFollow().empty())
- mMask |= COND_NOFOLLOW;
+ mMask |= InputCondition::NOFOLLOW;
}
bool InputManager::checkKey(const KeyData *const key) const
diff --git a/src/input/inputmanager.h b/src/input/inputmanager.h
index 870bcdb50..c76d5728c 100644
--- a/src/input/inputmanager.h
+++ b/src/input/inputmanager.h
@@ -33,33 +33,6 @@ class Setup_Input;
struct KeyData;
-enum KeyCondition
-{
- COND_DEFAULT = 1, // default condition
- COND_ENABLED = 2, // keyboard must be enabled
- COND_NOINPUT = 4, // input items must be unfocused
- COND_NOAWAY = 8, // player not in away mode
- COND_NOSETUP = 16, // setup window is hidde
- COND_VALIDSPEED = 32, // valid speed
- COND_NOMODAL = 64, // modal windows inactive
- COND_NONPCINPUT = 128, // npc input field inactive
- COND_EMODS = 256, // game modifiers enabled
- COND_NOTARGET = 512, // no target/untarget keys
- // pressed
- COND_NOFOLLOW = 1024, // follow mode disabled
- COND_INGAME = 2048, // game must be started
- COND_NOBUYSELL = 4096, // no active buy or sell dialogs
- COND_NONPCDIALOG = 8192, // no active npc dialog or
- // dialog almost closed
- COND_NOTALKING = 16384, // player have no opened
- // dialogs what prevent moving
- COND_SHORTCUT = 2 + 4 + 16 + 512 + 2048, // flags for shortcut keys
- COND_SHORTCUT0 = 2 + 4 + 16 + 512, // flags for shortcut keys
- COND_GAME = 2 + 4 + 8 + 16 + 64 + 2048, // main game key
- COND_GAME2 = 2 + 8 + 16 + 64 + 2048,
- COND_ARROWKEYS = 2 + 8 + 16 + 64 + 2048 + 4096 + 16384
-};
-
class InputManager final
{
public:
diff --git a/src/input/keyboarddata.h b/src/input/keyboarddata.h
index 2503d08fd..f947021a4 100644
--- a/src/input/keyboarddata.h
+++ b/src/input/keyboarddata.h
@@ -26,6 +26,7 @@
#include "actionmanager.h"
#include "localconsts.h"
+#include "input/inputcondition.h"
#include "input/inputmanager.h"
#include "input/inputtype.h"
@@ -41,175 +42,182 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
Input::GRP_DEFAULT,
&ActionManager::moveUp,
Input::KEY_NO_VALUE, 50,
- COND_ARROWKEYS},
+ InputCondition::ARROWKEYS},
{"keyMoveDown",
InputType::KEYBOARD, SDLK_DOWN,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::moveDown,
Input::KEY_NO_VALUE, 50,
- COND_ARROWKEYS},
+ InputCondition::ARROWKEYS},
{"keyMoveLeft",
InputType::KEYBOARD, SDLK_LEFT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::moveLeft,
Input::KEY_NO_VALUE, 50,
- COND_ARROWKEYS},
+ InputCondition::ARROWKEYS},
{"keyMoveRight",
InputType::KEYBOARD, SDLK_RIGHT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::moveRight,
Input::KEY_NO_VALUE, 50,
- COND_ARROWKEYS},
+ InputCondition::ARROWKEYS},
{"keyAttack",
InputType::KEYBOARD, SDLK_x,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_REPEAT,
&ActionManager::attack,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOFOLLOW | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::NOFOLLOW
+ | InputCondition::VALIDSPEED},
{"keyTargetAttack",
InputType::KEYBOARD, SDLK_LCTRL,
InputType::JOYSTICK, 0,
Input::GRP_DEFAULT,
&ActionManager::targetAttack,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOFOLLOW | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::NOFOLLOW
+ | InputCondition::VALIDSPEED},
{"keyMoveToTarget",
InputType::KEYBOARD, SDLK_v,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::moveToTarget,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyChangeMoveToTarget",
InputType::KEYBOARD, SDLK_PERIOD,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeMoveToTarget,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyMoveToHome",
InputType::KEYBOARD, SDLK_d,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::moveToHome,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keySetHome",
InputType::KEYBOARD, SDLK_KP5,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::setHome,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyMoveToPoint",
InputType::KEYBOARD, SDLK_RSHIFT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyTalk",
InputType::KEYBOARD, SDLK_t,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::talk,
Input::KEY_NO_VALUE, 50,
- COND_GAME},
+ InputCondition::GAME},
{"keyTarget",
InputType::KEYBOARD, SDLK_LSHIFT,
InputType::JOYSTICK, 4,
Input::GRP_DEFAULT,
&ActionManager::stopAttack,
Input::KEY_NO_VALUE, 50,
- COND_GAME},
+ InputCondition::GAME},
{"keyUnTarget",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::untarget,
Input::KEY_NO_VALUE, 50,
- COND_GAME},
+ InputCondition::GAME},
{"keyTargetMonster",
InputType::KEYBOARD, SDLK_a,
InputType::JOYSTICK, 3,
Input::GRP_DEFAULT | Input::GRP_REPEAT,
&ActionManager::targetMonster,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::NOTARGET
+ | InputCondition::VALIDSPEED},
{"keyTargetNPC",
InputType::KEYBOARD, SDLK_n,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::targetNPC,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyTargetPlayer",
InputType::KEYBOARD, SDLK_q,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::targetPlayer,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyPickup",
InputType::KEYBOARD, SDLK_z,
InputType::JOYSTICK, 1,
Input::GRP_DEFAULT,
&ActionManager::pickup,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyChangePickupType",
InputType::KEYBOARD, SDLK_o,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changePickupType,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyHideWindows",
InputType::KEYBOARD, SDLK_h,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::hideWindows,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyBeingSit",
InputType::KEYBOARD, SDLK_s,
InputType::JOYSTICK, 2,
Input::GRP_DEFAULT,
&ActionManager::sit,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyScreenshot",
InputType::KEYBOARD, SDLK_p,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::screenshot,
Input::KEY_NO_VALUE, 50,
- COND_NOTARGET},
+ InputCondition::NOTARGET},
{"keyTrade",
InputType::KEYBOARD, SDLK_r,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeTrade,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyPathfind",
InputType::KEYBOARD, SDLK_f,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeMapMode,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET | COND_EMODS},
+ InputCondition::GAME | InputCondition::NOTARGET
+ | InputCondition::EMODS},
{"keyOK",
InputType::KEYBOARD, SDLK_SPACE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::ok,
Input::KEY_NO_VALUE, 50,
- COND_NOMODAL | COND_NOAWAY | COND_NONPCINPUT},
+ InputCondition::NOMODAL | InputCondition::NOAWAY
+ | InputCondition::NONPCINPUT},
{"keyQuit",
InputType::KEYBOARD, SDLK_ESCAPE,
#if defined(USE_SDL2) && defined(ANDROID)
@@ -220,1407 +228,1409 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
Input::GRP_DEFAULT,
&ActionManager::quit,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyShortcutsKey",
InputType::KEYBOARD, SDLK_MENU,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyShortcut1",
InputType::KEYBOARD, SDLK_1,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut2",
InputType::KEYBOARD, SDLK_2,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut3",
InputType::KEYBOARD, SDLK_3,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut4",
InputType::KEYBOARD, SDLK_4,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut5",
InputType::KEYBOARD, SDLK_5,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut6",
InputType::KEYBOARD, SDLK_6,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut7",
InputType::KEYBOARD, SDLK_7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut8",
InputType::KEYBOARD, SDLK_8,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut9",
InputType::KEYBOARD, SDLK_9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut10",
InputType::KEYBOARD, SDLK_0,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut11",
InputType::KEYBOARD, SDLK_MINUS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut12",
InputType::KEYBOARD, SDLK_EQUALS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut13",
InputType::KEYBOARD, SDLK_BACKSPACE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut14",
InputType::KEYBOARD, SDLK_INSERT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut15",
InputType::KEYBOARD, SDLK_HOME,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut16",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut17",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut18",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut19",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyShortcut20",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::shortcut,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT},
+ InputCondition::SHORTCUT},
{"keyWindowHelp",
InputType::KEYBOARD, SDLK_F1,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::helpWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT0},
+ InputCondition::SHORTCUT0},
{"keyWindowStatus",
InputType::KEYBOARD, SDLK_F2,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::statusWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowInventory",
InputType::KEYBOARD, SDLK_F3,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::inventoryWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowEquipment",
InputType::KEYBOARD, SDLK_F4,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::equipmentWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowSkill",
InputType::KEYBOARD, SDLK_F5,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::skillDialogShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowMinimap",
InputType::KEYBOARD, SDLK_F6,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::minimapWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowChat",
InputType::KEYBOARD, SDLK_F7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::chatWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowShortcut",
InputType::KEYBOARD, SDLK_F8,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::shortcutWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowSetup",
InputType::KEYBOARD, SDLK_F9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::setupWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_NOTARGET | COND_NOINPUT | COND_ENABLED},
+ InputCondition::NOTARGET | InputCondition::NOINPUT
+ | InputCondition::ENABLED},
{"keyWindowDebug",
InputType::KEYBOARD, SDLK_F10,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::debugWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowSocial",
InputType::KEYBOARD, SDLK_F11,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::socialWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowEmoteBar",
InputType::KEYBOARD, SDLK_F12,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::emoteShortcutWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowOutfit",
InputType::KEYBOARD, SDLK_BACKQUOTE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::outfitWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowShop",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::shopWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowDrop",
InputType::KEYBOARD, SDLK_w,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::dropShortcutWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowKills",
InputType::KEYBOARD, SDLK_e,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::killStatsWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowSpells",
InputType::KEYBOARD, SDLK_j,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::spellShortcutWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowBotChecker",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::botcheckerWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowOnline",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::whoIsOnlineWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyWindowDidYouKnow",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::didYouKnowWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT0},
+ InputCondition::SHORTCUT0},
{"keyWindowQuests",
InputType::KEYBOARD, SDLK_LEFTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::questsWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keySocialPrevTab",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::prevSocialTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keySocialNextTab",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::nextSocialTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keySmilie",
InputType::KEYBOARD, SDLK_LALT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyEmoteShortcut1",
InputType::KEYBOARD, SDLK_1,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut2",
InputType::KEYBOARD, SDLK_2,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut3",
InputType::KEYBOARD, SDLK_3,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut4",
InputType::KEYBOARD, SDLK_4,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut5",
InputType::KEYBOARD, SDLK_5,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut6",
InputType::KEYBOARD, SDLK_6,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut7",
InputType::KEYBOARD, SDLK_7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut8",
InputType::KEYBOARD, SDLK_8,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut9",
InputType::KEYBOARD, SDLK_9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut10",
InputType::KEYBOARD, SDLK_0,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut11",
InputType::KEYBOARD, SDLK_MINUS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut12",
InputType::KEYBOARD, SDLK_EQUALS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut13",
InputType::KEYBOARD, SDLK_BACKSPACE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut14",
InputType::KEYBOARD, SDLK_INSERT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut15",
InputType::KEYBOARD, SDLK_HOME,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut16",
InputType::KEYBOARD, SDLK_q,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut17",
InputType::KEYBOARD, SDLK_w,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut18",
InputType::KEYBOARD, SDLK_e,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut19",
InputType::KEYBOARD, SDLK_r,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut20",
InputType::KEYBOARD, SDLK_t,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut21",
InputType::KEYBOARD, SDLK_y,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut22",
InputType::KEYBOARD, SDLK_u,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut23",
InputType::KEYBOARD, SDLK_i,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut24",
InputType::KEYBOARD, SDLK_o,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut25",
InputType::KEYBOARD, SDLK_p,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut26",
InputType::KEYBOARD, SDLK_LEFTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut27",
InputType::KEYBOARD, SDLK_RIGHTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut28",
InputType::KEYBOARD, SDLK_BACKSLASH,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut29",
InputType::KEYBOARD, SDLK_a,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut30",
InputType::KEYBOARD, SDLK_s,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut31",
InputType::KEYBOARD, SDLK_d,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut32",
InputType::KEYBOARD, SDLK_f,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut33",
InputType::KEYBOARD, SDLK_g,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut34",
InputType::KEYBOARD, SDLK_h,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut35",
InputType::KEYBOARD, SDLK_j,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut36",
InputType::KEYBOARD, SDLK_k,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut37",
InputType::KEYBOARD, SDLK_l,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut38",
InputType::KEYBOARD, SDLK_SEMICOLON,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut39",
InputType::KEYBOARD, SDLK_QUOTE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut40",
InputType::KEYBOARD, SDLK_z,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut41",
InputType::KEYBOARD, SDLK_x,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut42",
InputType::KEYBOARD, SDLK_c,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut43",
InputType::KEYBOARD, SDLK_v,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut44",
InputType::KEYBOARD, SDLK_b,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut45",
InputType::KEYBOARD, SDLK_n,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut46",
InputType::KEYBOARD, SDLK_m,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut47",
InputType::KEYBOARD, SDLK_COMMA,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyEmoteShortcut48",
InputType::KEYBOARD, SDLK_PERIOD,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_EMOTION,
&ActionManager::emote,
Input::KEY_EMOTE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyWearOutfit",
InputType::KEYBOARD, SDLK_RCTRL,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyCopyOutfit",
InputType::KEYBOARD, SDLK_RALT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyCopyEquipedOutfit",
InputType::KEYBOARD, SDLK_RIGHTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::copyEquippedToOutfit,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyOutfitShortcut1",
InputType::KEYBOARD, SDLK_1,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut2",
InputType::KEYBOARD, SDLK_2,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut3",
InputType::KEYBOARD, SDLK_3,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut4",
InputType::KEYBOARD, SDLK_4,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut5",
InputType::KEYBOARD, SDLK_5,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut6",
InputType::KEYBOARD, SDLK_6,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut7",
InputType::KEYBOARD, SDLK_7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut8",
InputType::KEYBOARD, SDLK_8,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut9",
InputType::KEYBOARD, SDLK_9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut10",
InputType::KEYBOARD, SDLK_0,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut11",
InputType::KEYBOARD, SDLK_MINUS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut12",
InputType::KEYBOARD, SDLK_EQUALS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut13",
InputType::KEYBOARD, SDLK_BACKSPACE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut14",
InputType::KEYBOARD, SDLK_INSERT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut15",
InputType::KEYBOARD, SDLK_HOME,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut16",
InputType::KEYBOARD, SDLK_q,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut17",
InputType::KEYBOARD, SDLK_w,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut18",
InputType::KEYBOARD, SDLK_e,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut19",
InputType::KEYBOARD, SDLK_r,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut20",
InputType::KEYBOARD, SDLK_t,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut21",
InputType::KEYBOARD, SDLK_y,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut22",
InputType::KEYBOARD, SDLK_u,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut23",
InputType::KEYBOARD, SDLK_i,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut24",
InputType::KEYBOARD, SDLK_o,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut25",
InputType::KEYBOARD, SDLK_p,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut26",
InputType::KEYBOARD, SDLK_LEFTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut27",
InputType::KEYBOARD, SDLK_RIGHTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut28",
InputType::KEYBOARD, SDLK_BACKSLASH,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut29",
InputType::KEYBOARD, SDLK_a,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut30",
InputType::KEYBOARD, SDLK_s,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut31",
InputType::KEYBOARD, SDLK_d,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut32",
InputType::KEYBOARD, SDLK_f,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut33",
InputType::KEYBOARD, SDLK_g,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut34",
InputType::KEYBOARD, SDLK_h,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut35",
InputType::KEYBOARD, SDLK_j,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut36",
InputType::KEYBOARD, SDLK_k,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut37",
InputType::KEYBOARD, SDLK_l,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut38",
InputType::KEYBOARD, SDLK_SEMICOLON,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut39",
InputType::KEYBOARD, SDLK_QUOTE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut40",
InputType::KEYBOARD, SDLK_z,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut41",
InputType::KEYBOARD, SDLK_x,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut42",
InputType::KEYBOARD, SDLK_c,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut43",
InputType::KEYBOARD, SDLK_v,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut44",
InputType::KEYBOARD, SDLK_b,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut45",
InputType::KEYBOARD, SDLK_n,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut46",
InputType::KEYBOARD, SDLK_m,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut47",
InputType::KEYBOARD, SDLK_COMMA,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyOutfitShortcut48",
InputType::KEYBOARD, SDLK_PERIOD,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_OUTFIT,
&ActionManager::outfit,
Input::KEY_NO_VALUE, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut1",
InputType::KEYBOARD, SDLK_1,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut2",
InputType::KEYBOARD, SDLK_2,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut3",
InputType::KEYBOARD, SDLK_3,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut4",
InputType::KEYBOARD, SDLK_4,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut5",
InputType::KEYBOARD, SDLK_5,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut6",
InputType::KEYBOARD, SDLK_6,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut7",
InputType::KEYBOARD, SDLK_7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut8",
InputType::KEYBOARD, SDLK_8,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut9",
InputType::KEYBOARD, SDLK_9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut10",
InputType::KEYBOARD, SDLK_0,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut11",
InputType::KEYBOARD, SDLK_MINUS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut12",
InputType::KEYBOARD, SDLK_EQUALS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut13",
InputType::KEYBOARD, SDLK_BACKSPACE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut14",
InputType::KEYBOARD, SDLK_INSERT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut15",
InputType::KEYBOARD, SDLK_HOME,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut16",
InputType::KEYBOARD, SDLK_q,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut17",
InputType::KEYBOARD, SDLK_w,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut18",
InputType::KEYBOARD, SDLK_e,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut19",
InputType::KEYBOARD, SDLK_r,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut20",
InputType::KEYBOARD, SDLK_t,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut21",
InputType::KEYBOARD, SDLK_y,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut22",
InputType::KEYBOARD, SDLK_u,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut23",
InputType::KEYBOARD, SDLK_i,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut24",
InputType::KEYBOARD, SDLK_o,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut25",
InputType::KEYBOARD, SDLK_p,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut26",
InputType::KEYBOARD, SDLK_LEFTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut27",
InputType::KEYBOARD, SDLK_RIGHTBRACKET,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut28",
InputType::KEYBOARD, SDLK_BACKSLASH,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut29",
InputType::KEYBOARD, SDLK_a,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut30",
InputType::KEYBOARD, SDLK_s,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut31",
InputType::KEYBOARD, SDLK_d,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut32",
InputType::KEYBOARD, SDLK_f,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut33",
InputType::KEYBOARD, SDLK_g,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut34",
InputType::KEYBOARD, SDLK_h,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut35",
InputType::KEYBOARD, SDLK_j,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut36",
InputType::KEYBOARD, SDLK_k,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut37",
InputType::KEYBOARD, SDLK_l,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut38",
InputType::KEYBOARD, SDLK_SEMICOLON,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut39",
InputType::KEYBOARD, SDLK_QUOTE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut40",
InputType::KEYBOARD, SDLK_z,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut41",
InputType::KEYBOARD, SDLK_x,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut42",
InputType::KEYBOARD, SDLK_c,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut43",
InputType::KEYBOARD, SDLK_v,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut44",
InputType::KEYBOARD, SDLK_b,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut45",
InputType::KEYBOARD, SDLK_n,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut46",
InputType::KEYBOARD, SDLK_m,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut47",
InputType::KEYBOARD, SDLK_COMMA,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyMoveToPointShortcut48",
InputType::KEYBOARD, SDLK_PERIOD,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_MOVETOPOINT,
&ActionManager::moveToPoint,
Input::KEY_MOVE_TO_POINT, 100,
- COND_GAME},
+ InputCondition::GAME},
{"keyChat",
InputType::KEYBOARD, SDLK_RETURN,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_CHAT,
&ActionManager::toggleChat,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_NOAWAY | COND_NOMODAL | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::NOAWAY
+ | InputCondition::NOMODAL | InputCondition::INGAME},
{"keyChatScrollUp",
InputType::KEYBOARD, SDLK_PAGEUP,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::scrollChatUp,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyChatScrollDown",
InputType::KEYBOARD, SDLK_PAGEDOWN,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::scrollChatDown,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyChatPrevTab",
InputType::KEYBOARD, SDLK_KP7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::prevChatTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keyChatNextTab",
InputType::KEYBOARD, SDLK_KP9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::nextChatTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keyChatCloseTab",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::closeChatTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keyChatPrevHistory",
InputType::KEYBOARD, SDLK_KP7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_CHAT | Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyChatNextHistory",
InputType::KEYBOARD, SDLK_KP9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_CHAT | Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyIgnoreInput1",
#ifdef USE_SDL2
InputType::UNKNOWN, Input::KEY_NO_VALUE,
@@ -1631,7 +1641,7 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
Input::GRP_DEFAULT,
&ActionManager::ignoreInput,
Input::KEY_NO_VALUE, 500,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyIgnoreInput2",
#ifdef USE_SDL2
InputType::UNKNOWN, Input::KEY_NO_VALUE,
@@ -1642,224 +1652,234 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
Input::GRP_DEFAULT,
&ActionManager::ignoreInput,
Input::KEY_NO_VALUE, 500,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyDirectUp",
InputType::KEYBOARD, SDLK_l,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::directUp,
Input::KEY_NO_VALUE, 50,
- COND_GAME},
+ InputCondition::GAME},
{"keyDirectDown",
InputType::KEYBOARD, SDLK_SEMICOLON,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::directDown,
Input::KEY_NO_VALUE, 50,
- COND_GAME},
+ InputCondition::GAME},
{"keyDirectLeft",
InputType::KEYBOARD, SDLK_k,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::directLeft,
Input::KEY_NO_VALUE, 50,
- COND_GAME},
+ InputCondition::GAME},
{"keyDirectRight",
InputType::KEYBOARD, SDLK_QUOTE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::directRight,
Input::KEY_NO_VALUE, 50,
- COND_GAME},
+ InputCondition::GAME},
{"keyCrazyMoves",
InputType::KEYBOARD, SDLK_SLASH,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::crazyMoves,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyChangeCrazyMoveType",
InputType::KEYBOARD, SDLK_BACKSLASH,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeCrazyMove,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyQuickDrop",
InputType::KEYBOARD, SDLK_y,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::dropItem0,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyQuickDropN",
InputType::KEYBOARD, SDLK_u,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::dropItem,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keySwitchQuickDrop",
InputType::KEYBOARD, SDLK_i,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::switchQuickDrop,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyMagicInma1",
InputType::KEYBOARD, SDLK_c,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::heal,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyMagicItenplz",
InputType::KEYBOARD, SDLK_m,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::itenplz,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyMagicAttack",
InputType::KEYBOARD, SDLK_b,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::magicAttack,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keySwitchMagicAttack",
InputType::KEYBOARD, SDLK_COMMA,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeMagicAttack,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keySwitchPvpAttack",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changePvpMode,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyInvertDirection",
InputType::KEYBOARD, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeMoveType,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyChangeAttackWeaponType",
InputType::KEYBOARD, SDLK_g,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeAttackWeaponType,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyChangeAttackType",
InputType::KEYBOARD, SDLK_END,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeAttackType,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyChangeFollowMode",
InputType::KEYBOARD, SDLK_KP1,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeFollowMode,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyChangeImitationMode",
InputType::KEYBOARD, SDLK_KP4,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeImitationMode,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyDisableGameModifiers",
InputType::KEYBOARD, SDLK_KP8,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeGameModifier,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyChangeAudio",
InputType::KEYBOARD, SDLK_KP3,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::changeAudio,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyAway",
InputType::KEYBOARD, SDLK_KP2,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::away,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED},
+ InputCondition::GAME | InputCondition::VALIDSPEED},
{"keyRightClick",
InputType::KEYBOARD, SDLK_TAB,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::mouseClick,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_NOAWAY | COND_NOMODAL | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::NOAWAY
+ | InputCondition::NOMODAL | InputCondition::INGAME},
{"keyCameraMode",
InputType::KEYBOARD, SDLK_KP_PLUS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::camera,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_VALIDSPEED | COND_EMODS},
+ InputCondition::GAME | InputCondition::VALIDSPEED
+ | InputCondition::EMODS},
{"keyMod",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
0,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIUp",
InputType::KEYBOARD, SDLK_UP,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIDown",
InputType::KEYBOARD, SDLK_DOWN,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUILeft",
InputType::KEYBOARD, SDLK_LEFT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIRight",
InputType::KEYBOARD, SDLK_RIGHT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUISelect",
InputType::KEYBOARD, SDLK_SPACE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUISelect2",
InputType::KEYBOARD, SDLK_RETURN,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUICancel",
InputType::KEYBOARD, SDLK_ESCAPE,
#if defined(USE_SDL2) && defined(ANDROID)
@@ -1870,224 +1890,224 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIHome",
InputType::KEYBOARD, SDLK_HOME,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIEnd",
InputType::KEYBOARD, SDLK_END,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIDelete",
InputType::KEYBOARD, SDLK_DELETE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIBackSpace",
InputType::KEYBOARD, SDLK_BACKSPACE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUITab",
InputType::KEYBOARD, SDLK_TAB,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIPageUp",
InputType::KEYBOARD, SDLK_PAGEUP,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIPageDown",
InputType::KEYBOARD, SDLK_PAGEDOWN,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIInsert",
InputType::KEYBOARD, SDLK_INSERT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIMod",
InputType::KEYBOARD, SDLK_LSHIFT,
InputType::KEYBOARD, SDLK_RSHIFT,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keySafeVideo",
InputType::KEYBOARD, SDLK_KP_MINUS,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::safeVideoMode,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyStopSit",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::stopSit,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyShowKeyboard",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::showKeyboard,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyShowWindows",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::showWindows,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyChatMod",
InputType::KEYBOARD, SDLK_LSHIFT,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT | COND_INGAME},
+ InputCondition::DEFAULT | InputCondition::INGAME},
{"keyMoveForward",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::moveForward,
Input::KEY_NO_VALUE, 50,
- COND_ARROWKEYS},
+ InputCondition::ARROWKEYS},
{"keyGUICtrl",
InputType::KEYBOARD, SDLK_LCTRL,
InputType::KEYBOARD, SDLK_RCTRL,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIb",
InputType::KEYBOARD, SDLK_b,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIc",
InputType::KEYBOARD, SDLK_c,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUId",
InputType::KEYBOARD, SDLK_d,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIe",
InputType::KEYBOARD, SDLK_e,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIf",
InputType::KEYBOARD, SDLK_f,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIh",
InputType::KEYBOARD, SDLK_h,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIk",
InputType::KEYBOARD, SDLK_k,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIu",
InputType::KEYBOARD, SDLK_u,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIv",
InputType::KEYBOARD, SDLK_v,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIw",
InputType::KEYBOARD, SDLK_w,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyShortcutsPrevTab",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::prevShortcutsTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keyShortcutsNextTab",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::nextShortcutsTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keyCommandsPrevTab",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::prevCommandsTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keyCommandsNextTab",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::nextCommandsTab,
Input::KEY_NO_VALUE, 50,
- COND_NOINPUT | COND_INGAME},
+ InputCondition::NOINPUT | InputCondition::INGAME},
{"keyOpenTrade",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT,
&ActionManager::openTrade,
Input::KEY_NO_VALUE, 50,
- COND_GAME | COND_NOTARGET},
+ InputCondition::GAME | InputCondition::NOTARGET},
{"keyGUIF1",
InputType::KEYBOARD, SDLK_F1,
@@ -2095,91 +2115,91 @@ static const KeyData keyData[Input::KEY_TOTAL] = {
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF2",
InputType::KEYBOARD, SDLK_F2,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF3",
InputType::KEYBOARD, SDLK_F3,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF4",
InputType::KEYBOARD, SDLK_F4,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF5",
InputType::KEYBOARD, SDLK_F5,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF6",
InputType::KEYBOARD, SDLK_F6,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF7",
InputType::KEYBOARD, SDLK_F7,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF8",
InputType::KEYBOARD, SDLK_F8,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF9",
InputType::KEYBOARD, SDLK_F9,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF10",
InputType::KEYBOARD, SDLK_F10,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF11",
InputType::KEYBOARD, SDLK_F11,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyGUIF12",
InputType::KEYBOARD, SDLK_F12,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_GUICHAN | Input::GRP_CHAT,
nullptr,
Input::KEY_NO_VALUE, 50,
- COND_DEFAULT},
+ InputCondition::DEFAULT},
{"keyWindowAbout",
InputType::UNKNOWN, Input::KEY_NO_VALUE,
InputType::UNKNOWN, Input::KEY_NO_VALUE,
Input::GRP_DEFAULT | Input::GRP_GUI,
&ActionManager::aboutWindowShow,
Input::KEY_NO_VALUE, 50,
- COND_SHORTCUT0},
+ InputCondition::SHORTCUT0},
};
#endif // INPUT_KEYBOARDDATA_H