语法
参数
此方法没有参数。返回值
类型:GameInputDeviceStatus 返回值为枚举类型GameInputDeviceStatus。返回值可能是 GameInputDeviceStatus 中多个枚举标志值的组合。
备注
返回的 GameInputDeviceStatus 枚举定义设备是否已连接,以及游戏与设备之间可以传输的输入和输出类型。如果在设备已与系统断开连接时调用GetDeviceStatus 方法,将返回 GameInputDeviceNoStatus 值。你可以将 GameInputDeviceStatus 枚举用作 RegisterDeviceCallback 方法的筛选器,以响应设备状态的特定变化。
要求
头文件: GameInput.h另请参阅
已弃用的 GameInput API 成员IGameInputDevice::IsConnected
GameInputDeviceEvent
GameInput 概述
GameInputDeviceStatus
RegisterDeviceCallback
IGameInputDevice
