Potential fix for a crash we're seeing on Android that should in theory never happen.
This commit is contained in:
parent
20ec866484
commit
9261e473d6
1 changed files with 4 additions and 1 deletions
|
@ -1044,7 +1044,10 @@ SDL_JoystickUpdate(void)
|
||||||
|
|
||||||
for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
|
for (joystick = SDL_joysticks; joystick; joystick = joystick->next) {
|
||||||
if (joystick->attached) {
|
if (joystick->attached) {
|
||||||
|
/* This should always be true, but seeing a crash in the wild...? */
|
||||||
|
if (joystick->driver) {
|
||||||
joystick->driver->Update(joystick);
|
joystick->driver->Update(joystick);
|
||||||
|
}
|
||||||
|
|
||||||
if (joystick->delayed_guide_button) {
|
if (joystick->delayed_guide_button) {
|
||||||
SDL_GameControllerHandleDelayedGuideButton(joystick);
|
SDL_GameControllerHandleDelayedGuideButton(joystick);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue