Get the status of a specified joystick.
Defined in SDL_joystick.h, but apps should only #include "SDL.h"
!
SDL_bool SDL_JoystickGetAttached(SDL_Joystick *joystick);
joystick | the joystick to query |
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.
CategoryAPI, CategoryAPIFunction