Skip to main content

IGameInputMapper::GetGamepadButtonMapping

語法

參數

buttonElement   _In_
類型:GameInputGamepadButtons
要查詢其對應的特定遊戲台按鈕。 mapping   _Out_
類型:GameInputButtonMapping
對應資訊,說明此按鈕如何從控制器的軸、按鈕或開關進行對應。

傳回值

類型:bool 是否已成功擷取對應。如果裝置不支援 GameInputKindGamepad 輸入種類,或裝置不支援指定的按鈕元素,此值為 false。

需求

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

另請參閱

輸入 API 概觀
IGameInputMapper

版本歷程記錄

Last modified on October 6, 2026