語法
成員
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 API 成員IGameInputDevice
GameInput 概觀
GameInput
