IGameInputReading::GetControllerSwitchCount (v2)

检索游戏控制器上的开关数。

语法

uint32_t GetControllerSwitchCount();

参数

此方法没有任何参数。

返回值

类型:uint32_t

返回游戏控制器上的开关数。

备注

IGameInputReading::GetControllerSwitchCount 方法检索游戏控制器的开关数。 它还确定 IGameInputReading::GetControllerSwitchState 方法所需的缓冲。 有关 GameInput API 的中级和高级用例,请参阅高级 GameInput 主题

要求

头文件:GameInput.h

库:gameinput.lib

支持的平台: 窗户

另请参阅

GameInputIGameInputReading 概述