diff options
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 2 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 18 | ||||
-rw-r--r-- | src/input/pages/windows.cpp | 12 |
3 files changed, 32 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index f049d209f..7ab68911c 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -487,6 +487,8 @@ namespace InputAction HOMUNCULUS_SET_NAME, HOMUNCULUS_FIRE, WINDOW_BANK, + PREV_INV_TAB, + NEXT_INV_TAB, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 460f11048..cb9805d3a 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4125,6 +4125,24 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::SHORTCUT0, "bank|openbank", false}, + {"keyInventoryPrevTab", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT | Input::GRP_GUI, + &Actions::prevInvTab, + InputAction::NO_VALUE, 50, + InputCondition::NOINPUT | InputCondition::INGAME, + "previnvtab", + false}, + {"keyInventoryNextTab", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT | Input::GRP_GUI, + &Actions::nextInvTab, + InputAction::NO_VALUE, 50, + InputCondition::NOINPUT | InputCondition::INGAME, + "nextinvtab", + false}, }; #endif // INPUT_INPUTACTIONMAP_H diff --git a/src/input/pages/windows.cpp b/src/input/pages/windows.cpp index 32fc18c49..0bde9cb9e 100644 --- a/src/input/pages/windows.cpp +++ b/src/input/pages/windows.cpp @@ -224,6 +224,18 @@ SetupActionData setupActionDataWindows[] = "", }, { + // TRANSLATORS: input action name + N_("Previous inventory tab"), + InputAction::PREV_INV_TAB, + "", + }, + { + // TRANSLATORS: input action name + N_("Next inventory tab"), + InputAction::NEXT_INV_TAB, + "", + }, + { "", InputAction::NO_VALUE, "" |