diff options
author | aap <aap@papnet.eu> | 2019-07-16 18:31:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-16 18:31:29 +0200 |
commit | 3fee2bef9888e188b07e011067652388a5585f96 (patch) | |
tree | b80e8bc8569fbdda5929123a8f47d0c62aea0ab0 /src/core/Pad.h | |
parent | Merge pull request #136 from Nick007J/master (diff) | |
parent | Merge branch 'master' into erorcun (diff) | |
download | re3-3fee2bef9888e188b07e011067652388a5585f96.tar re3-3fee2bef9888e188b07e011067652388a5585f96.tar.gz re3-3fee2bef9888e188b07e011067652388a5585f96.tar.bz2 re3-3fee2bef9888e188b07e011067652388a5585f96.tar.lz re3-3fee2bef9888e188b07e011067652388a5585f96.tar.xz re3-3fee2bef9888e188b07e011067652388a5585f96.tar.zst re3-3fee2bef9888e188b07e011067652388a5585f96.zip |
Diffstat (limited to 'src/core/Pad.h')
-rw-r--r-- | src/core/Pad.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/Pad.h b/src/core/Pad.h index 30a9980b..f853a8cd 100644 --- a/src/core/Pad.h +++ b/src/core/Pad.h @@ -51,6 +51,17 @@ enum Key }; */ +enum { + PLAYERCONTROL_ENABLED = 0, + PLAYERCONTROL_DISABLED_1 = 1, + PLAYERCONTROL_DISABLED_2 = 2, + PLAYERCONTROL_DISABLED_4 = 4, + PLAYERCONTROL_DISABLED_8 = 8, + PLAYERCONTROL_DISABLED_10 = 16, + PLAYERCONTROL_DISABLED_20 = 32, + PLAYERCONTROL_DISABLED_40 = 64, // used on phone calls + PLAYERCONTROL_DISABLED_80 = 128, +}; class CControllerState { @@ -188,7 +199,7 @@ public: uint8 ShakeFreq; int8 bHornHistory[5]; uint8 iCurrHornHistory; - bool DisablePlayerControls; + uint8 DisablePlayerControls; int8 bApplyBrakes; char _unk[12]; //int32 unk[3]; char _pad0[3]; @@ -362,6 +373,8 @@ public: int32 GetLeftShoulder2(void) { return NewState.LeftShoulder2; } int32 GetRightShoulder1(void) { return NewState.RightShoulder1; } int32 GetRightShoulder2(void) { return NewState.RightShoulder2; } + + bool ArePlayerControlsDisabled(void) { return DisablePlayerControls != PLAYERCONTROL_ENABLED; } }; VALIDATE_SIZE(CPad, 0xFC); |