Share via


GameInputRacingWheelState (v1)

Describes the state of a racing wheel.

Syntax

struct GameInputRacingWheelState
{
    GameInputRacingWheelButtons buttons;
    int32_t                     patternShifterGear;
    float                       wheel;
    float                       throttle;
    float                       brake;
    float                       clutch;
    float                       handbrake;
};

Members

buttons Type: GameInputRacingWheelButtons

State of the buttons on a racing wheel.

patternShifterGear Type: int32_t

Current gear selected on the pattern shifter.

wheel Type: float

Position of the wheel, normalized as a value in the range [-1.0, 1.0].

throttle Type: float

Position of the throttle, normalized as a value in the range [0.0, 1.0].

brake Type: float

Position of the brake, normalized as a value in the range [0.0, 1.0].

clutch Type: float

Position of the clutch, normalized as a value in the range [0.0, 1.0].

handbrake Type: float

Position of the handbrake, normalized as a value in the range [0.0, 1.0].

Remarks

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

To determine whether a racing wheel has a clutch, handbrake, or pattern shifter, examine the GameInputRacingWheelInfo structure.

For more information, see GameInput readings.

Requirements

Header: GameInput.h

Supported platforms: Windows

See also

Overview of GameInput GameInput