Skip to main content

GameInputControllerInfo

描述控制器的屬性。

語法

成員

controllerAxisCount
類型:uint32_t
控制器上的軸數目。 controllerAxisLabels
類型:GameInputLabel const *
控制器上各軸的標籤。 controllerButtonCount
類型:uint32_t
控制器上的按鈕數目。 controllerButtonLabels
類型:GameInputLabel const *
控制器上各按鈕的標籤。 controllerSwitchCount
類型:uint32_t
控制器上的開關數目。 controllerSwitchInfo
類型:GameInputControllerSwitchInfo const *
控制器上開關的相關資訊。

備註

GameInputControllerInfo 結構中的欄位是指向控制器相關資訊之可變大小陣列的指標。NULL 指標表示控制器不提供或不支援對應的功能。每個陣列中的元素數目由結構中對應的欄位指示 (如 SAL 註釋中所述)。 此結構用於 GameInputDeviceInfo 結構中。GameInputDeviceInfo 由 IGameInputDevice::GetDeviceInfo 方法使用。 如需詳細資訊,請參閱 GameInput 裝置。

需求

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

另請參閱

GameInput 概觀
GameInput

版本歷程記錄

Last modified on October 6, 2026