diff --git a/data/tr2/ship/cfg/TR2X_gameflow.json5 b/data/tr2/ship/cfg/TR2X_gameflow.json5 index fd8c4e1ac..0cb92f0f8 100644 --- a/data/tr2/ship/cfg/TR2X_gameflow.json5 +++ b/data/tr2/ship/cfg/TR2X_gameflow.json5 @@ -374,6 +374,7 @@ "KEYMAP_RUN": "Run", "KEYMAP_STEP_LEFT": "Step Left", "KEYMAP_STEP_RIGHT": "Step Right", + "KEYMAP_TURBO_CHEAT": "Turbo Speed", "KEYMAP_USE_FLARE": "Flare", "KEYMAP_WALK": "Walk", "MISC_OFF": "Off", diff --git a/src/libtrx/include/libtrx/game/game_string.def b/src/libtrx/include/libtrx/game/game_string.def index 9732e77b3..03f182db0 100644 --- a/src/libtrx/include/libtrx/game/game_string.def +++ b/src/libtrx/include/libtrx/game/game_string.def @@ -71,3 +71,4 @@ GS_DEFINE(KEYMAP_FLY_CHEAT, "Fly Cheat") GS_DEFINE(KEYMAP_ITEM_CHEAT, "Item Cheat") GS_DEFINE(KEYMAP_LEVEL_SKIP_CHEAT, "Level Skip") GS_DEFINE(KEYMAP_ENTER_CONSOLE, "Dev Console") +GS_DEFINE(KEYMAP_TURBO_CHEAT, "Turbo Speed") diff --git a/src/tr1/game/game_string.def b/src/tr1/game/game_string.def index fb2b97908..0e92d2d8b 100644 --- a/src/tr1/game/game_string.def +++ b/src/tr1/game/game_string.def @@ -44,7 +44,6 @@ GS_DEFINE(SOUND_SET_VOLUMES, "Set Volumes") GS_DEFINE(CONTROL_RESET_DEFAULTS, "Reset All: Hold %s") GS_DEFINE(CONTROL_UNBIND, "Unbind: Hold %s") GS_DEFINE(KEYMAP_PAUSE, "Pause") -GS_DEFINE(KEYMAP_TURBO_CHEAT, "Turbo Speed") GS_DEFINE(KEYMAP_CHANGE_TARGET, "Change Target") GS_DEFINE(KEYMAP_TOGGLE_UI, "Toggle UI") GS_DEFINE(KEYMAP_TOGGLE_PHOTO_MODE, "Toggle Photo Mode") diff --git a/src/tr2/game/input.c b/src/tr2/game/input.c index fd2eb9e64..9af2d5948 100644 --- a/src/tr2/game/input.c +++ b/src/tr2/game/input.c @@ -138,6 +138,7 @@ void Input_Update(void) g_Input.item_cheat = 0; g_Input.fly_cheat = 0; g_Input.level_skip_cheat = 0; + g_Input.turbo_cheat = 0; } g_InputDB = M_GetDebounced(g_Input); @@ -169,6 +170,7 @@ const char *Input_GetRoleName(const INPUT_ROLE role) case INPUT_ROLE_FLY_CHEAT: return GS(KEYMAP_FLY_CHEAT); case INPUT_ROLE_ITEM_CHEAT: return GS(KEYMAP_ITEM_CHEAT); case INPUT_ROLE_LEVEL_SKIP_CHEAT: return GS(KEYMAP_LEVEL_SKIP_CHEAT); + case INPUT_ROLE_TURBO_CHEAT: return GS(KEYMAP_TURBO_CHEAT); case INPUT_ROLE_ENTER_CONSOLE: return GS(KEYMAP_ENTER_CONSOLE); default: return ""; } diff --git a/src/tr2/game/ui/controllers/controls.c b/src/tr2/game/ui/controllers/controls.c index 2c73d238b..e414d90cf 100644 --- a/src/tr2/game/ui/controllers/controls.c +++ b/src/tr2/game/ui/controllers/controls.c @@ -49,6 +49,7 @@ static const INPUT_ROLE m_RightRoles_CheatsOn[] = { INPUT_ROLE_FLY_CHEAT, INPUT_ROLE_ITEM_CHEAT, INPUT_ROLE_LEVEL_SKIP_CHEAT, + INPUT_ROLE_TURBO_CHEAT, (INPUT_ROLE)-1, // clang-format on };