GameInputLocation

枚举输入设备的各个部分。

语法

typedef enum GameInputLocation  
{  
    GameInputLocationUnknown = -1,  
    GameInputLocationChassis = 0,  
    GameInputLocationDisplay = 1,  
    GameInputLocationAxis = 2,  
    GameInputLocationButton = 3,  
    GameInputLocationSwitch = 4,  
    GameInputLocationKey = 5,  
    GameInputLocationTouchPad = 6  
} GameInputLocation  

常量

常量 说明
GameInputLocationUnknown 位置描述是未知的。
GameInputLocationChassis 设备功能位于机箱中。
GameInputLocationDisplay 设备功能位于显示器中。
GameInputLocationAxis 设备功能位于设备轴中。
GameInputLocationButton 设备功能位于输入设备按钮中。
GameInputLocationSwitch 设备功能位于设备开关中。
GameInputLocationKey 设备功能位于设备钥匙中。
GameInputLocationTouchPad 设备功能位于设备触摸传感器中。

备注

此函数可用于指示设备某一部分(如震动马达、触觉反馈马达或触摸传感器)的位置。 并非所有设备本身都提供此信息,因此,这经常是“未知的”,除非已将其他设备特定的数据添加到注册表中。
GameInputForceFeedbackMotorInfo 的成员。
GameInputHapticFeedbackMotorInfo 的成员。
GameInputTouchSensorInfo 的成员。

要求

头文件:GameInput.h

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

输入 API 概述
GameInput
GameInputForceFeedbackMotorInfo
GameInputHapticFeedbackMotorInfo
GameInputTouchSensorInfo