SDL_GetGamepadProductForID

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

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

extern (C) nothrow @nogc extern
SDL_GetGamepadProductForID

Parameters

instance_id SDL_JoystickID

the joystick instance ID.

Return Value

Type: Uint16

The USB product ID of the selected gamepad. If called on an invalid index, this function returns zero.

See Also

Meta