summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-28 13:24:13 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-28 13:24:13 +0100
commit268f92bfbe5330149be341855fa52f53ea501c62 (patch)
treee4ec5d4cc96e2bdc1fd153fc605d20e1a410f592 /src/core/Pad.h
parentMerge pull request #353 from Sergeanur/Debug (diff)
downloadre3-268f92bfbe5330149be341855fa52f53ea501c62.tar
re3-268f92bfbe5330149be341855fa52f53ea501c62.tar.gz
re3-268f92bfbe5330149be341855fa52f53ea501c62.tar.bz2
re3-268f92bfbe5330149be341855fa52f53ea501c62.tar.lz
re3-268f92bfbe5330149be341855fa52f53ea501c62.tar.xz
re3-268f92bfbe5330149be341855fa52f53ea501c62.tar.zst
re3-268f92bfbe5330149be341855fa52f53ea501c62.zip
Diffstat (limited to 'src/core/Pad.h')
-rw-r--r--src/core/Pad.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/Pad.h b/src/core/Pad.h
index 09691128..a231900e 100644
--- a/src/core/Pad.h
+++ b/src/core/Pad.h
@@ -4,7 +4,7 @@ enum {
PLAYERCONTROL_ENABLED = 0,
PLAYERCONTROL_DISABLED_1 = 1,
PLAYERCONTROL_DISABLED_2 = 2,
- PLAYERCONTROL_DISABLED_4 = 4,
+ PLAYERCONTROL_GARAGE = 4,
PLAYERCONTROL_DISABLED_8 = 8,
PLAYERCONTROL_DISABLED_10 = 16,
PLAYERCONTROL_DISABLED_20 = 32, // used on CPlayerInfo::MakePlayerSafe
@@ -423,7 +423,10 @@ public:
bool GetRightShoulder1(void) { return !!NewState.RightShoulder1; }
bool GetRightShoulder2(void) { return !!NewState.RightShoulder2; }
- bool ArePlayerControlsDisabled(void) { return DisablePlayerControls != PLAYERCONTROL_ENABLED; }
+ 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; }
};
VALIDATE_SIZE(CPad, 0xFC);