Don't try to autoconfigure XInput controls on other platforms than Windows

This commit is contained in:
Henrik Rydgård committed 2023-12-08 16:24:48 +01:00
1 parent 566d9f67f6
commit e8c5456021
1 file changed
+6 -2
+6 -2
View File
@@ -822,8 +822,12 @@ void AutoConfForPad(const std::string &name) {
SetDefaultKeyMap(DEFAULT_MAPPING_ANDROID_PAD, false);
}
#else
// TODO: Should actually check for XInput?
if (name.find("Xbox") != std::string::npos) {
#if PPSSPP_PLATFORM(WINDOWS)
const bool platformSupportsXinput = true;
#else
const bool platformSupportsXinput = false;
#endif
if (platformSupportsXinput && name.find("Xbox") != std::string::npos) {
SetDefaultKeyMap(DEFAULT_MAPPING_XINPUT, false);
} else {
SetDefaultKeyMap(DEFAULT_MAPPING_PAD, false);