mirror of
https://github.com/yawut/SDL.git
synced 2026-08-01 07:53:54 -05:00
Fixed joystick attached API call on Linux
This commit is contained in:
parent
23950f0183
commit
c40214eab9
|
|
@ -1248,7 +1248,7 @@ SDL_JoystickID SDL_SYS_GetInstanceIdOfDeviceIndex(int index)
|
|||
/* Function to determine is this joystick is attached to the system right now */
|
||||
int SDL_SYS_JoystickAttached(SDL_Joystick *joystick)
|
||||
{
|
||||
return joystick->closed;
|
||||
return !joystick->closed;
|
||||
}
|
||||
|
||||
int SDL_SYS_NumJoysticks()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user