Fixed SDL building with the minimal configuration

This commit is contained in:
Sam Lantinga 2013-06-13 22:10:10 -07:00
parent 5971051d9e
commit 5aa3492ef8
9 changed files with 28 additions and 27 deletions

View file

@ -611,7 +611,7 @@ SDL_PrivateJoystickButton(SDL_Joystick * joystick, Uint8 button, Uint8 state)
/* We ignore events if we don't have keyboard focus, except for button
* release. */
if (event.type == SDL_JOYBUTTONDOWN && SDL_PrivateJoystickShouldIgnoreEvent()) {
if (state == SDL_PRESSED && SDL_PrivateJoystickShouldIgnoreEvent()) {
return 0;
}