Get the status of a specified joystick.
Defined in SDL_joystick.h
SDL_bool SDL_JoystickGetAttached(SDL_Joystick *joystick);
SDL_Joystick * | joystick | the joystick to query. |
(SDL_bool) Returns SDL_TRUE if the joystick has been opened, SDL_FALSE if it has not; call SDL_GetError() for more information.
This function is available since SDL 2.0.0.