หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Retrieves the number of axes on a game controller.
Syntax
uint32_t GetControllerAxisCount(
)
Parameters
Return value
Type: uint32_t
Returns the number of axes on the game controller.
Remarks
The IGameInputReading::GetControllerAxisCount method determines the buffers needed for the IGameInputReading::GetControllerAxisState method. GetControllerAxisCount retrieves axis, button, and switch state from a game controller. Each state is returned as a separate variable-length array into buffers provided by the caller. The number of valid buffer entries upon return is indicated by the return value.
Requirements
Header: GameInput.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles
See also
Advanced GameInput topics
Overview of GameInput
IGameInputReading