src/joystick/SDL_joystick.c
changeset 7297 c43b23f0c000
parent 7294 0923de98a63a
child 7307 5d6b7b9432d3
equal deleted inserted replaced
7296:a8145f734ad3 7297:c43b23f0c000
   609         return 0;
   609         return 0;
   610     }
   610     }
   611 
   611 
   612     /* We ignore events if we don't have keyboard focus, except for button
   612     /* We ignore events if we don't have keyboard focus, except for button
   613      * release. */
   613      * release. */
   614     if (SDL_PrivateJoystickShouldIgnoreEvent() && event.type == SDL_JOYBUTTONDOWN) {
   614     if (event.type == SDL_JOYBUTTONDOWN && SDL_PrivateJoystickShouldIgnoreEvent()) {
   615         return 0;
   615         return 0;
   616     }
   616     }
   617 
   617 
   618     /* Update internal joystick state */
   618     /* Update internal joystick state */
   619     joystick->buttons[button] = state;
   619     joystick->buttons[button] = state;