mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Don't try to autoconfigure XInput controls on other platforms than Windows
This commit is contained in:
1 parent
566d9f67f6
commit
e8c5456021
1 file changed
+6
-2
+6
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user