mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
🩹 fix: recheck through gamepads when gamepad is added or removed
This commit is contained in:
parent
bb86ee3172
commit
c47658a8ef
@ -474,6 +474,13 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SDL_EVENT_GAMEPAD_ADDED:
|
||||||
|
case SDL_EVENT_GAMEPAD_REMOVED: {
|
||||||
|
if (InputManager()) {
|
||||||
|
InputManager()->GetJoystick();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case SDL_EVENT_GAMEPAD_BUTTON_DOWN: {
|
case SDL_EVENT_GAMEPAD_BUTTON_DOWN: {
|
||||||
switch (event->gbutton.button) {
|
switch (event->gbutton.button) {
|
||||||
case SDL_GAMEPAD_BUTTON_DPAD_UP:
|
case SDL_GAMEPAD_BUTTON_DPAD_UP:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user