Fixed joystick attached API call on Linux
This commit is contained in:
parent
34b88dfaae
commit
3765f3223a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue