IGameInputReading::GetKeyCount
检索键盘上处于活动状态的键数。
语法
uint32_t GetKeyCount(
)
参数
此方法没有任何参数。
返回值
类型:uint32_t
此操作返回游戏控制器上处于活动状态的键的数量。
备注
IGameInputReading::GetKeyCount
方法检索游戏手柄上处于活动状态的键数。 使用它可确定 IGameInputReading::GetKeyState 方法所需的数组数目。 有关 GameInput API 的中级和高级用例,请参阅高级 GameInput 主题。
要求
头文件:GameInput.h
库:xgameruntime.lib
支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机