From 737fab16421fb758ca6f651075257543af5dbbd9 Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 9 Oct 2021 01:57:52 +0200 Subject: [PATCH] Fix gamepad hold x to pickup only being applied to non dedi --- src/Components/Modules/Gamepad.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/Gamepad.cpp b/src/Components/Modules/Gamepad.cpp index 5ba7a66b..5068f5b6 100644 --- a/src/Components/Modules/Gamepad.cpp +++ b/src/Components/Modules/Gamepad.cpp @@ -1870,6 +1870,9 @@ namespace Components Utils::Hook(0x60B264, Com_WriteConfiguration_Modified_Stub, HOOK_JUMP).install()->quick(); Utils::Hook(0x60B223, Key_WriteBindings_Hk, HOOK_CALL).install()->quick(); + // Add hold time to gamepad usereload on hold prompts + Utils::Hook(0x5FE396, Player_UseEntity_Stub, HOOK_JUMP).install()->quick(); + CreateKeyNameMap(); Command::Add("bindaxis", Axis_Bind_f); @@ -1896,9 +1899,6 @@ namespace Components // Only return gamepad keys when gamepad enabled and only non gamepad keys when not Utils::Hook(0x5A7A23, Key_GetCommandAssignmentInternal_Hk, HOOK_CALL).install()->quick(); - // Add hold time to gamepad usereload on hold prompts - Utils::Hook(0x5FE396, Player_UseEntity_Stub, HOOK_JUMP).install()->quick(); - // Add gamepad inputs to remote control (eg predator) handling Utils::Hook(0x5A6D4E, CL_RemoteControlMove_Stub, HOOK_CALL).install()->quick();