IGameInputReading::GetDevice (v2)

获取与 IGameInputReading 相关联的设备。

语法

void GetDevice(
    IGameInputDevice** device
);

参数

device _Outptr_
类型:IGameInputDevice**

与 IGameInputReading 相关联的设备

返回值

类型:void

备注

使用此方法可获取有关设备及其功能的信息。 例如,您可能需要知道设备上按钮、阵列和轴的数目。 当您需要为要求开发者创建的缓冲区的许多 Get*State 函数(例如 IGameInputReading::GetGamepadState)传入相应大小的缓冲区时,知道上述数目将很重要。

要求

头文件:GameInput.h

库:gameinput.lib

支持的平台: 窗户

另请参阅

输入 API 概述IGameInputReadingIGameInputReading::GetGamepadState