Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed joystick attached API call on Linux

  • Loading branch information
slouken committed Nov 27, 2012
1 parent ae55666 commit 9ffa8080f1f82e358ff96e20eb785c0168c06c7b
Showing with 1 addition and 1 deletion.
  1. +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()

0 comments on commit 9ffa808

Please sign in to comment.