mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
Add option to bind right analog stick to left/right dpad buttons only. Can be useful for games that use the dpad as a camera, and horizontal camera movement is more common than vertical(i.e. Monster Hunter).
This commit is contained in:
1 parent
1bf4239e97
commit
fb3ade56b9
2 files changed
+8
No files matched your search
@@ -237,6 +237,10 @@ int DinputDevice::UpdateState(InputState &input_state)
|
||||
if (js.lZ > rthreshold) input_state.pad_buttons |= PAD_BUTTON_Y;
|
||||
else if (js.lZ < -rthreshold) input_state.pad_buttons |= PAD_BUTTON_A;
|
||||
break;
|
||||
case 5:
|
||||
if (js.lRz > rthreshold) input_state.pad_buttons |= PAD_BUTTON_RIGHT;
|
||||
else if (js.lRz < -rthreshold) input_state.pad_buttons |= PAD_BUTTON_LEFT;
|
||||
break;
|
||||
}
|
||||
|
||||
return UPDATESTATE_SKIP_PAD;
|
||||
|
||||
Reference in new issue
Block a user