mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Hard bind right x360 stick to buttons until we can improve control mapping functionality. Thanks KrossX.
This commit is contained in:
1 parent
a08ded1eed
commit
5916a345c3
1 file changed
+8
@@ -172,7 +172,15 @@ void XinputDevice::ApplyDiff(XINPUT_STATE &state, InputState &input_state) {
|
||||
}
|
||||
|
||||
}
|
||||
const SHORT rthreshold = 22000;
|
||||
|
||||
if (state.Gamepad.sThumbRX > rthreshold) input_state.pad_buttons |= PAD_BUTTON_RIGHT;
|
||||
else if (state.Gamepad.sThumbRX < -rthreshold) input_state.pad_buttons |= PAD_BUTTON_LEFT;
|
||||
|
||||
if (state.Gamepad.sThumbRY > rthreshold) input_state.pad_buttons |= PAD_BUTTON_UP;
|
||||
else if (state.Gamepad.sThumbRY < -rthreshold) input_state.pad_buttons |= PAD_BUTTON_DOWN;
|
||||
}
|
||||
|
||||
int XinputDevice::UpdateRawStateSingle(RawInputState &rawState)
|
||||
{
|
||||
if (g_Config.iForceInputDevice > 0) return -1;
|
||||
|
||||
Reference in new issue
Block a user