SDL_GetJoystickProduct

Get the USB product ID of an opened joystick, if available.

If the product ID isn't available this function returns 0.

extern (C) nothrow @nogc extern
SDL_GetJoystickProduct

Parameters

joystick SDL_Joystick*

the SDL_Joystick obtained from SDL_OpenJoystick().

Return Value

Type: Uint16

The USB product ID of the selected joystick, or 0 if unavailable.

See Also

Meta