SDL_GetGamepadFromID

Get the SDL_Gamepad associated with a joystick instance ID, if it has been opened.

extern (C) nothrow @nogc extern
SDL_GetGamepadFromID

Parameters

instance_id SDL_JoystickID

the joystick instance ID of the gamepad.

Return Value

An SDL_Gamepad on success or NULL on failure or if it hasn't been opened yet; call SDL_GetError() for more information.

Meta