summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-05 15:38:41 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-05 15:38:41 +0100
commit5a59542679d1b3d230392fe5c0147659818d3ab8 (patch)
tree0ac52ca2a6e74c82b7003a45e7257c5d987c129c /src/core/Pad.cpp
parentMerge pull request #795 from withmorten/master (diff)
downloadre3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.gz
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.bz2
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.lz
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.xz
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.zst
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.zip
Diffstat (limited to '')
-rw-r--r--src/core/Pad.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index b723eb1d..6752c1c5 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -3222,6 +3222,9 @@ int16 CPad::SniperModeLookUpDown(void)
int16 axis = NewState.LeftStickY;
int16 dpad;
+#ifdef FIX_BUGS
+ axis = -axis;
+#endif
if (CPad::bInvertLook4Pad) {
axis = -axis;
dpad = (NewState.DPadDown - NewState.DPadUp) / 2;
@@ -3257,7 +3260,9 @@ int16 CPad::LookAroundLeftRight(void)
int16 CPad::LookAroundUpDown(void)
{
int16 axis = GetPad(0)->NewState.RightStickY;
-
+#ifdef FIX_BUGS
+ axis = -axis;
+#endif
if (CPad::bInvertLook4Pad)
axis = -axis;