summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h11
-rw-r--r--src/input/pages/basic.cpp6
3 files changed, 17 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index 3146e290b..e272cefd4 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -477,6 +477,7 @@ namespace InputAction
PET_EMOTE_46,
PET_EMOTE_47,
PET_EMOTE_48,
+ CATCH_PET,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index eb95e8fc3..a355c33ba 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -4034,7 +4034,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::PET_EMOTE, 100,
InputCondition::GAME,
"",
- false}
+ false},
+ {"keyCatchPet",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::catchPet,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "catchpet|catch",
+ true},
};
#endif // INPUT_INPUTACTIONMAP_H
diff --git a/src/input/pages/basic.cpp b/src/input/pages/basic.cpp
index 9d158f0be..8975c23a4 100644
--- a/src/input/pages/basic.cpp
+++ b/src/input/pages/basic.cpp
@@ -129,6 +129,12 @@ SetupActionData setupActionDataBasic[] =
},
{
// TRANSLATORS: input action name
+ N_("Catch pet"),
+ InputAction::CATCH_PET,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
N_("Other Keys"),
InputAction::NO_VALUE,
"",