Fixed compiler warning (and undefined behavior) in game controller event filter.
This commit is contained in:
parent
8ec12be05a
commit
e2aa9f0afb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue