diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index f36776e54..a14276029 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -101,7 +101,7 @@ void CInput::InitJoysticks() OpenJoystick(i); UpdateActiveJoystick(); - Console()->Chain("joystick_guid", ConchainJoystickGuidChanged, this); + Console()->Chain("inp_controller_guid", ConchainJoystickGuidChanged, this); } bool CInput::OpenJoystick(int JoystickIndex) @@ -145,7 +145,10 @@ void CInput::UpdateActiveJoystick() void CInput::ConchainJoystickGuidChanged(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) { pfnCallback(pResult, pCallbackUserData); - static_cast(pUserData)->UpdateActiveJoystick(); + if(pResult->NumArguments() == 1) + { + static_cast(pUserData)->UpdateActiveJoystick(); + } } float CInput::GetJoystickDeadzone()