GameInputDeviceStatus (v2)

输入设备可能所处的状态的枚举。

语法

enum GameInputDeviceStatus
{
    GameInputDeviceNoStatus        = 0x00000000,
    GameInputDeviceConnected       = 0x00000001,
    GameInputDeviceHapticInfoReady = 0x00200000,
    GameInputDeviceAnyStatus       = 0xFFFFFFFF
};

常量

常量 说明
GameInputDeviceNoStatus 指示设备没有状态。
GameInputDeviceConnected 指示设备已连接。
GameInputDeviceHapticInfoReady 指示设备触觉信息已准备就绪。
GameInputDeviceAnyStatus 对于任何设备状态,将返回 true。

备注

当用户一次在多台设备上看到“适合筛选”时,可以结合使用这些标志值。 由 iGameInputDevice_GetDeviceStatus 返回。

当其中任何状态发生更改时,应用程序可以通过 IGameInput 接口 上的 IGameInput::RegisterDeviceCallback 方法进行注册以接收回调。

要求

头文件:GameInput.h

支持的平台: 窗户

另请参阅

输入 API 概述
GameInput
IGameInput::RegisterDeviceCallback