SDL_GetJoystickProductForID

Get the USB product ID of a joystick, if available.

This can be called before any joysticks are opened. If the product ID isn't available this function returns 0.

extern (C) nothrow @nogc extern
SDL_GetJoystickProductForID

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

Return Value

Type: Uint16

the USB product ID of the selected joystick. If called with an invalid instance_id, this function returns 0.

See Also

Meta