Skip to content

Commit

Permalink
Don't try to autoconfigure XInput controls on other platforms than Wi…
Browse files Browse the repository at this point in the history
…ndows
  • Loading branch information
hrydgard committed Dec 8, 2023
1 parent 566d9f6 commit e8c5456
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Core/KeyMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e8c5456

Please sign in to comment.