mirror of
https://github.com/yawut/SDL.git
synced 2026-07-01 00:39:58 -05:00
Fixed compiler warning (and undefined behavior) in game controller event filter.
This commit is contained in:
parent
fe9e22362c
commit
421b23644a
|
|
@ -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…
Reference in New Issue
Block a user