Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warning (and undefined behavior) in game controller ev…
Browse files Browse the repository at this point in the history
…ent filter.
  • Loading branch information
slouken committed Feb 12, 2013
1 parent 28c6fa1 commit 659da0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/joystick/SDL_gamecontroller.c
Expand Up @@ -1065,7 +1065,8 @@ SDL_PrivateGameControllerAxis(SDL_GameController * gamecontroller, SDL_CONTROLLE
int
SDL_PrivateGameControllerButton(SDL_GameController * gamecontroller, SDL_CONTROLLER_BUTTON button, Uint8 state)
{
if ( button == SDL_CONTROLLER_BUTTON_INVALID ) return;
if ( button == SDL_CONTROLLER_BUTTON_INVALID )
return (0);

int posted;
#if !SDL_EVENTS_DISABLED
Expand Down

0 comments on commit 659da0b

Please sign in to comment.