跳轉到主要內容
取得輸入裝置的產品識別碼。

語法

參數

此方法沒有參數。

傳回值

類型:uint16_t 將輸入裝置識別為其廠商之產品的產品識別碼;如果裝置未回報產品識別碼,則為 0。

備註

產品識別碼是由裝置廠商指派,因此產品識別碼只有在與 IGameInputDevice::GetVendorId 傳回的廠商識別碼搭配時才有意義。 產品識別碼在裝置物件的存留期間內不會變更。 在 GameInput v3 及更早版本中,此資訊可從 IGameInputDevice::GetDeviceInfo 所傳回 GameInputDeviceInfo 結構的 productId 成員取得。

需求

標頭: GameInput.h 程式庫: gameinput.lib 支援的平台: Windows、XBOX One 系列主機和 XBOX Series 主機

另請參閱

GameInput 概觀
IGameInputDevice
IGameInputDevice::GetVendorId
IGameInputDevice::GetRevisionNumber

版本歷程記錄

最後修改於 2026年11月6日