diff options
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 |