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:
The Dax committed 2013-07-05 06:02:47 -04:00
1 parent 1bf4239e97
commit fb3ade56b9
2 files changed
+8

No files matched your search

+4
View File
@@ -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;