diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-24 22:49:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-24 22:49:20 +0300 |
commit | 84d56b88a03054d35b84dc1ecbd7ad4614f8ac86 (patch) | |
tree | a6de73a2a93ac287413917c1ba540dff6f65da5d /src/input | |
parent | 0a4da74459471686e153b600253f12706d0ce8de (diff) | |
download | manaverse-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.gz manaverse-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.bz2 manaverse-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.xz manaverse-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.zip |
Add new action for select closest monster without filters and sorting.
By default unassigned.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/keyboarddata.h | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 68b0b8a1a..2231a89dd 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -340,6 +340,7 @@ namespace InputAction GUI_F12, WINDOW_ABOUT, WINDOW_UPDATER, + TARGET_CLOSEST_MONSTER, TOTAL }; } // namespace InputAction diff --git a/src/input/keyboarddata.h b/src/input/keyboarddata.h index 779fcd2ac..fb810a683 100644 --- a/src/input/keyboarddata.h +++ b/src/input/keyboarddata.h @@ -2208,7 +2208,15 @@ static const KeyData keyData[InputAction::TOTAL] = { Input::GRP_DEFAULT | Input::GRP_GUI, &ActionManager::updaterWindowShow, InputAction::NO_VALUE, 50, - InputCondition::GAME} + InputCondition::GAME}, + {"keyTargetClosestMonster", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT | Input::GRP_REPEAT, + &ActionManager::targetClosestMonster, + InputAction::NO_VALUE, 50, + InputCondition::GAME | InputCondition::NOTARGET + | InputCondition::VALIDSPEED} }; #endif // INPUT_KEYBOARDDATA_H |