SDL_GetJoystickTypeForID

Get the type of a joystick, if available.

This can be called before any joysticks are opened.

extern (C) nothrow @nogc extern
SDL_GetJoystickTypeForID

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

Return Value

the SDL_JoystickType of the selected joystick. If called with an invalid instance_id, this function returns SDL_JOYSTICK_TYPE_UNKNOWN.

See Also

Meta