หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Retrieves the number of buttons on a game controller.
Syntax
uint32_t GetControllerButtonCount(
)
Parameters
This method has no parameters.
Return value
Type: uint32_t
Returns the number of buttons on the game controller.
Remarks
The IGameInputReading::GetControllerButtonCount method retrieves the number of buttons for a game controller. It also determines the buffers required by the IGameInputReading::GetControllerButtonState method.
For intermediate and advanced use-cases of the GameInput API, see Advanced GameInput topics.
Requirements
Header: GameInput.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles