Skip to main content
Gets the product ID of the input device.

Syntax

Parameters

This method has no parameters.

Return value

Type: uint16_t The product ID that identifies the input device as a product of its vendor, or 0 if the device doesn’t report a product ID.

Remarks

Product IDs are assigned by the device vendor, so a product ID is meaningful only in combination with the vendor ID returned by IGameInputDevice::GetVendorId. The product ID doesn’t change for the lifetime of the device object. In GameInput v3 and earlier, this information was available from the productId member of the GameInputDeviceInfo structure returned by IGameInputDevice::GetDeviceInfo.

Requirements

Header: GameInput.h Library: gameinput.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

Overview of GameInput
IGameInputDevice
IGameInputDevice::GetVendorId
IGameInputDevice::GetRevisionNumber

Version History

Last modified on November 5, 2026