Fix COMMAND_GET_CONTROLLER_MODE

This commit is contained in:
Sergeanur 2020-05-02 19:39:26 +03:00
parent ba8aa38654
commit fc85bb710b

View File

@ -5250,7 +5250,11 @@ int8 CRunningScript::ProcessCommands600To699(int32 command)
return 0;
}
case COMMAND_GET_CONTROLLER_MODE:
#if defined(GTA_PC) && !defined(DETECT_PAD_INPUT_SWITCH)
ScriptParams[0] = 0;
#else
ScriptParams[0] = CPad::GetPad(0)->Mode;
#endif
StoreParameters(&m_nIp, 1);
return 0;
case COMMAND_SET_CAN_RESPRAY_CAR: