summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-31 19:59:01 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-31 19:59:01 +0200
commitc1c163d78c7f822b62aa6b0f5c7b00642b961700 (patch)
tree7a586e9878b6725e52f92e0efbc6576828b18696 /src/core/Pad.h
parentbetter name (diff)
downloadre3-c1c163d78c7f822b62aa6b0f5c7b00642b961700.tar
re3-c1c163d78c7f822b62aa6b0f5c7b00642b961700.tar.gz
re3-c1c163d78c7f822b62aa6b0f5c7b00642b961700.tar.bz2
re3-c1c163d78c7f822b62aa6b0f5c7b00642b961700.tar.lz
re3-c1c163d78c7f822b62aa6b0f5c7b00642b961700.tar.xz
re3-c1c163d78c7f822b62aa6b0f5c7b00642b961700.tar.zst
re3-c1c163d78c7f822b62aa6b0f5c7b00642b961700.zip
Diffstat (limited to '')
-rw-r--r--src/core/Pad.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/Pad.h b/src/core/Pad.h
index 46ed9b39..a1461575 100644
--- a/src/core/Pad.h
+++ b/src/core/Pad.h
@@ -10,6 +10,7 @@ enum {
PLAYERCONTROL_DISABLED_20 = 32, // used on CPlayerInfo::MakePlayerSafe
PLAYERCONTROL_DISABLED_40 = 64, // used on phone calls
PLAYERCONTROL_DISABLED_80 = 128,// used on cutscenes
+ PLAYERCONTROL_SHORTCUT_TAXI = 256,
};
class CControllerState
@@ -150,10 +151,10 @@ public:
int16 Phase;
int16 Mode;
int16 ShakeDur;
+ uint16 DisablePlayerControls;
uint8 ShakeFreq;
bool bHornHistory[HORNHISTORY_SIZE];
uint8 iCurrHornHistory;
- uint8 DisablePlayerControls;
int8 bApplyBrakes;
char CheatString[12];
int32 LastTimeTouched;
@@ -449,9 +450,9 @@ public:
int16 GetRightStickY(void) { return NewState.RightStickY; }
bool ArePlayerControlsDisabled(void) { return DisablePlayerControls != PLAYERCONTROL_ENABLED; }
- void SetDisablePlayerControls(uint8 who) { DisablePlayerControls |= who; }
- void SetEnablePlayerControls(uint8 who) { DisablePlayerControls &= ~who; }
- bool IsPlayerControlsDisabledBy(uint8 who) { return DisablePlayerControls & who; }
+ void SetDisablePlayerControls(uint16 who) { DisablePlayerControls |= who; }
+ void SetEnablePlayerControls(uint16 who) { DisablePlayerControls &= ~who; }
+ bool IsPlayerControlsDisabledBy(uint16 who) { return DisablePlayerControls & who; }
};
VALIDATE_SIZE(CPad, 0xFC);