Get the connection state of a gamepad.
the gamepad object to query.
the connection state on success or SDL_JOYSTICK_CONNECTION_INVALID on failure; call SDL_GetError() for more information.
See Implementation
Get the connection state of a gamepad.