mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 19:24:30 -05:00
Fixed joystick attached API call on Linux
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user