Share via


GameInputFlightStickState (v1)

Describes the state of a flight stick.

Syntax

struct GameInputFlightStickState {
    GameInputFlightStickButtons buttons;
    GameInputSwitchPosition     hatSwitch;
    float                       roll;
    float                       pitch;
    float                       yaw;
    float                       throttle;
};

Members

buttons Type: GameInputFlightStickButtons

The flight stick buttons that are pressed.

hatSwitch Type: GameInputSwitchPosition

Position of the hat switch.

roll Type: float

Normalized roll value in the range [-1.0, 1.0].

pitch Type: float

Normalized pitch value in the range [-1.0, 1.0].

yaw Type: float

Normalized yaw value in the range [-1.0, 1.0].

throttle Type: float

Normalized throttle value in the range [-1.0, 1.0].

Remarks

This structure is used by the IGameInputReading::GetFlightStickState method.

For more information, see the Getting data from readings section of GameInput readings. For a related code example, see A simple gamepad input loop.

Requirements

Header: GameInput.h

Supported platforms: Windows

See also

Overview of GameInput GameInput