Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed joystick attached API call on Linux
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/joystick/linux/SDL_sysjoystick.c
|
@@ -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() |
|
|