Skip to main content

IGameInputReading::GetControllerSwitchCount

检索游戏控制器上的开关(switch)数量。

语法

参数

此方法没有参数。

返回值

类型:uint32_t 返回游戏控制器上的开关数量。

备注

IGameInputReading::GetControllerSwitchCount 方法用于检索游戏控制器的开关数量。它同时也决定了 IGameInputReading::GetControllerSwitchState 方法所需的缓冲区大小。有关 GameInput API 的中级和高级用例,请参见 GameInput 高级主题

要求

头文件: GameInput.h GameInput 概述
IGameInputReading

版本历史

最后修改于 2026年8月13日