mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 12:34:37 +00:00
Please work
This commit is contained in:
parent
057f2f9beb
commit
05ee6f0f42
@ -351,7 +351,7 @@ u8 GameControllers::GetGamepadIndexFromJoystickId(SDL_JoystickID id) {
|
|||||||
UNREACHABLE_MSG("Gamepad is null!");
|
UNREACHABLE_MSG("Gamepad is null!");
|
||||||
}
|
}
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
if (controllers[i]->m_sdl_gamepad == gamepad) {
|
if (SDL_GetGamepadID(controllers[i]->m_sdl_gamepad) == id) {
|
||||||
return controllers[i]->player_index;
|
return controllers[i]->player_index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user