/* Get the instance id for this opened joystick  */
SDL_JoystickID SDL_JoystickInstanceID(SDL_Joystick *joystick)
/* Get the instance id for this opened joystick  */
SDL_JoystickID SDL_JoystickInstanceID(SDL_Joystick *joystick)
{
    if (!SDL_PrivateJoystickValid(joystick)) {
        return -1;
    }
    return joystick->instance_id;
}