summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-07-24 18:55:43 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-07-24 18:55:43 +0200
commitb4ecb3e3dad654e01d0ceb4c359721650dda425b (patch)
tree27cfc6fb58ec53080d9c4850f13b8b97ad681b13 /src/core/Pad.h
parentMerge pull request #1 from GTAmodding/master (diff)
downloadre3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.gz
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.bz2
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.lz
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.xz
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.zst
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.zip
Diffstat (limited to 'src/core/Pad.h')
-rw-r--r--src/core/Pad.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/core/Pad.h b/src/core/Pad.h
index 30cdb8df..62585377 100644
--- a/src/core/Pad.h
+++ b/src/core/Pad.h
@@ -354,10 +354,18 @@ public:
bool GetRightShoulder1JustDown() { return !!(NewState.RightShoulder1 && !OldState.RightShoulder1); }
bool GetRightShoulder2JustDown() { return !!(NewState.RightShoulder2 && !OldState.RightShoulder2); }
- int32 GetLeftShoulder1(void) { return NewState.LeftShoulder1; }
- int32 GetLeftShoulder2(void) { return NewState.LeftShoulder2; }
- int32 GetRightShoulder1(void) { return NewState.RightShoulder1; }
- int32 GetRightShoulder2(void) { return NewState.RightShoulder2; }
+ bool GetTriangle() { return !!NewState.Triangle; }
+ bool GetCircle() { return !!NewState.Circle; }
+ bool GetCross() { return !!NewState.Cross; }
+ bool GetSquare() { return !!NewState.Square; }
+ bool GetDPadUp() { return !!NewState.DPadUp; }
+ bool GetDPadDown() { return !!NewState.DPadDown; }
+ bool GetDPadLeft() { return !!NewState.DPadLeft; }
+ bool GetDPadRight() { return !!NewState.DPadRight; }
+ bool GetLeftShoulder1(void) { return !!NewState.LeftShoulder1; }
+ bool GetLeftShoulder2(void) { return !!NewState.LeftShoulder2; }
+ bool GetRightShoulder1(void) { return !!NewState.RightShoulder1; }
+ bool GetRightShoulder2(void) { return !!NewState.RightShoulder2; }
};
VALIDATE_SIZE(CPad, 0xFC);