summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-30 06:43:55 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-30 06:43:55 +0200
commitc80bdf3a2a898297eb385659288efca43d8b106b (patch)
tree0d757bc14e3058e2696be41a83473d8b1888f46e /src/core/Pad.cpp
parentFix MBlur (diff)
downloadre3-c80bdf3a2a898297eb385659288efca43d8b106b.tar
re3-c80bdf3a2a898297eb385659288efca43d8b106b.tar.gz
re3-c80bdf3a2a898297eb385659288efca43d8b106b.tar.bz2
re3-c80bdf3a2a898297eb385659288efca43d8b106b.tar.lz
re3-c80bdf3a2a898297eb385659288efca43d8b106b.tar.xz
re3-c80bdf3a2a898297eb385659288efca43d8b106b.tar.zst
re3-c80bdf3a2a898297eb385659288efca43d8b106b.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 9065c8ca..851625d2 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -344,15 +344,14 @@ void AltDodoCheat(void)
#endif
bool
-CControllerState::IsAnyButtonPressed(void)
+CControllerState::CheckForInput(void)
{
return !!RightStickX || !!RightStickY || !!LeftStickX || !!LeftStickY
|| !!DPadUp || !!DPadDown || !!DPadLeft || !!DPadRight
|| !!Triangle || !!Cross || !!Circle || !!Square
|| !!Start || !!Select
|| !!LeftShoulder1 || !!LeftShoulder2 || !!RightShoulder1 || !!RightShoulder2
- || !!LeftShock || !!RightShock
- || !!NetworkTalk;
+ || !!LeftShock || !!RightShock;
}
void
@@ -1074,7 +1073,7 @@ void CPad::UpdatePads(void)
CapturePad(0);
#endif
#ifdef DETECT_PAD_INPUT_SWITCH
- if (GetPad(0)->PCTempJoyState.IsAnyButtonPressed())
+ if (GetPad(0)->PCTempJoyState.CheckForInput())
IsAffectedByController = true;
else {
#endif
@@ -1084,7 +1083,7 @@ void CPad::UpdatePads(void)
#ifdef DETECT_PAD_INPUT_SWITCH
}
- if (IsAffectedByController && (GetPad(0)->PCTempKeyState.IsAnyButtonPressed() || GetPad(0)->PCTempMouseState.IsAnyButtonPressed()))
+ if (IsAffectedByController && (GetPad(0)->PCTempKeyState.CheckForInput() || GetPad(0)->PCTempMouseState.CheckForInput()))
IsAffectedByController = false;
#endif