跳转到主要内容
已弃用。 此方法已在 GameInput v4 中移除,当前 API 中不再提供。请使用 IGameInputDevice::IsConnected 检查设备是否已连接,并在设备回调中处理 GameInputDeviceEvent 值以响应变化。
检索输入设备的当前状态。

语法

参数

此方法没有参数。

返回值

类型:GameInputDeviceStatus 返回值为枚举类型 GameInputDeviceStatus。返回值可能是 GameInputDeviceStatus 中多个枚举标志值的组合。

备注

返回的 GameInputDeviceStatus 枚举定义设备是否已连接,以及游戏与设备之间可以传输的输入和输出类型。如果在设备已与系统断开连接时调用 GetDeviceStatus 方法,将返回 GameInputDeviceNoStatus 值。你可以将 GameInputDeviceStatus 枚举用作 RegisterDeviceCallback 方法的筛选器,以响应设备状态的特定变化。

要求

头文件: GameInput.h

另请参阅

已弃用的 GameInput API 成员
IGameInputDevice::IsConnected
GameInputDeviceEvent
GameInput 概述
GameInputDeviceStatus
RegisterDeviceCallback
IGameInputDevice

版本历史

最后修改于 2026年11月6日