summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-02 18:39:26 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-02 18:39:36 +0200
commitfc85bb710b99cbd0122ccb720d0eb24f74f62638 (patch)
tree1a592a9d833aa392831dbde99548d6172596eb59 /src/control/Script.cpp
parentSwitching pad modes and cheats when player is switching between controller and kb&m (diff)
downloadre3-fc85bb710b99cbd0122ccb720d0eb24f74f62638.tar
re3-fc85bb710b99cbd0122ccb720d0eb24f74f62638.tar.gz
re3-fc85bb710b99cbd0122ccb720d0eb24f74f62638.tar.bz2
re3-fc85bb710b99cbd0122ccb720d0eb24f74f62638.tar.lz
re3-fc85bb710b99cbd0122ccb720d0eb24f74f62638.tar.xz
re3-fc85bb710b99cbd0122ccb720d0eb24f74f62638.tar.zst
re3-fc85bb710b99cbd0122ccb720d0eb24f74f62638.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index b63a5d87..3e06fcfb 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -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: