Fix for menu navigation with DInput controllers on Windows. Bit of a hack.

This commit is contained in:
Henrik Rydgård 2023-04-01 20:26:18 +02:00
parent c1b5aed9b7
commit 33ba6f6f1a

View File

@ -110,6 +110,12 @@ void UpdateNativeMenuKeys() {
cancelKeys.push_back(hardcodedCancelKeys[i]);
}
// For DInput controllers on Windows. Doesn't clash with XInput because that uses BUTTON_X etc.
#if PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(UWP)
confirmKeys.push_back(InputMapping(DEVICE_ID_PAD_0, NKCODE_BUTTON_2));
cancelKeys.push_back(InputMapping(DEVICE_ID_PAD_0, NKCODE_BUTTON_3));
#endif
SetDPadKeys(upKeys, downKeys, leftKeys, rightKeys);
SetConfirmCancelKeys(confirmKeys, cancelKeys);
SetTabLeftRightKeys(tabLeft, tabRight);