Skip to main content

IGameInputReading::GetKeyCount

擷取鍵盤上作用中的按鍵數目。

語法

參數

此方法沒有參數。

傳回值

類型:uint32_t 傳回遊戲控制器上作用中的按鍵數目。

備註

IGameInputReading::GetKeyCount 方法會擷取遊戲控制器上作用中的按鍵數目。它可用來判斷 IGameInputReading::GetKeyState 方法所需的陣列數目。如需 GameInput API 的中階與進階使用案例,請參閱進階 GameInput 主題。

需求

標頭: GameInput.h GameInput 概觀
IGameInputReading

版本歷程記錄

Last modified on October 6, 2026