输入设备上开关的枚举位置。
语法
enum GameInputSwitchPosition
{
GameInputSwitchCenter = 0,
GameInputSwitchUp = 1,
GameInputSwitchUpRight = 2,
GameInputSwitchRight = 3,
GameInputSwitchDownRight = 4,
GameInputSwitchDown = 5,
GameInputSwitchDownLeft = 6,
GameInputSwitchLeft = 7,
GameInputSwitchUpLeft = 8
};
常量
常量 | 说明 |
---|---|
GameInputSwitchCenter | 在中心位置切换。 |
GameInputSwitchUp | 在向上位置切换。 |
GameInputSwitchUpRight | 在右上位置切换。 |
GameInputSwitchRight | 在右侧位置切换。 |
GameInputSwitchDownRight | 在右下位置切换。 |
GameInputSwitchDown | 在向下位置切换。 |
GameInputSwitchDownLeft | 在左下位置切换。 |
GameInputSwitchLeft | 在左侧位置切换。 |
GameInputSwitchUpLeft | 在左上位置切换。 |
备注
并非每个切换都支持每个值。
此枚举用于 GameInputFlightStickState 结构和 IGameInputReading::GetControllerSwitchState 方法。
有关 GameInput API 的中级和高级用例,请参阅高级 GameInput 主题。
要求
头文件:GameInput.h
支持的平台: 窗户