Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enumerates positions of a switch on an input device.
Syntax
enum GameInputSwitchPosition
{
GameInputSwitchCenter = 0,
GameInputSwitchUp = 1,
GameInputSwitchUpRight = 2,
GameInputSwitchRight = 3,
GameInputSwitchDownRight = 4,
GameInputSwitchDown = 5,
GameInputSwitchDownLeft = 6,
GameInputSwitchLeft = 7,
GameInputSwitchUpLeft = 8
};
Constants
| Constant | Description |
|---|---|
| GameInputSwitchCenter | Switch in the center position. |
| GameInputSwitchUp | Switch in the up position. |
| GameInputSwitchUpRight | Switch in the up-right position. |
| GameInputSwitchRight | Switch in the right position. |
| GameInputSwitchDownRight | Switch in the down-right position. |
| GameInputSwitchDown | Switch in the down position. |
| GameInputSwitchDownLeft | Switch in the down-left position. |
| GameInputSwitchLeft | Switch in the left position. |
| GameInputSwitchUpLeft | Switch in the up-left position. |
Remarks
Not every switch supports each value.
This enumeration is used in the GameInputFlightStickState structure and the IGameInputReading::GetControllerSwitchState method.
For intermediate and advanced use cases of the GameInput API, see Advanced GameInput topics.
Requirements
Header: GameInput.h
Supported platforms: Windows