Skip to content

Commit

Permalink
SDLInput:Source Add a message prompt for gamepads witn non-Xbox layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastRar committed Feb 21, 2025
1 parent 5a08d23 commit f553a6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pcsx2/Input/SDLInputSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,14 @@ std::optional<InputBindingKey> SDLInputSource::ParseKeyString(const std::string_
const SDL_GamepadButtonLabel label = SDL_GetGamepadButtonLabel(it->gamepad, face_button_pos[pos]);
if (key.data == (label - 1))
{
key.data = pos;
if (key.data != pos)
{
Host::ReportInfoAsync(TRANSLATE("SDLInputSource", "SDL3 Migration"),
TRANSLATE("SDLInputSource", "As part of our upgrade to SDL3, we've had to migrate your binds\n"
"Your controller did not match the Xbox layout and may need rebinding\n"
"Please verify your controller settings and amend if required"));
key.data = pos;
}
break;
}
}
Expand Down

0 comments on commit f553a6e

Please sign in to comment.