summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-03-28 17:12:22 +0100
committerGitHub <noreply@github.com>2020-03-28 17:12:22 +0100
commitc056871e0766c587e45797405f6432715beba810 (patch)
tree8b0d0c7f364decebaaeacc8a328491404213964a /src/core/Pad.cpp
parentMerge pull request #362 from Fire-Head/master (diff)
parentCCopPed done and #include cleanup (diff)
downloadre3-c056871e0766c587e45797405f6432715beba810.tar
re3-c056871e0766c587e45797405f6432715beba810.tar.gz
re3-c056871e0766c587e45797405f6432715beba810.tar.bz2
re3-c056871e0766c587e45797405f6432715beba810.tar.lz
re3-c056871e0766c587e45797405f6432715beba810.tar.xz
re3-c056871e0766c587e45797405f6432715beba810.tar.zst
re3-c056871e0766c587e45797405f6432715beba810.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 87f45b9f..6bbe00f2 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -574,8 +574,9 @@ void CPad::AffectFromXinput(uint32 pad)
PCTempJoyState.RightShoulder2 = xstate.Gamepad.bRightTrigger;
PCTempJoyState.Select = (xstate.Gamepad.wButtons & XINPUT_GAMEPAD_BACK) ? 255 : 0;
+#ifdef REGISTER_START_BUTTON
PCTempJoyState.Start = (xstate.Gamepad.wButtons & XINPUT_GAMEPAD_START) ? 255 : 0;
-
+#endif
float lx = (float)xstate.Gamepad.sThumbLX / (float)0x7FFF;
float ly = (float)xstate.Gamepad.sThumbLY / (float)0x7FFF;
float rx = (float)xstate.Gamepad.sThumbRX / (float)0x7FFF;