Dela via


FlightStickReading Struct

Definition

The current state of the flight stick.

public value class FlightStickReading
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
struct FlightStickReading
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public struct FlightStickReading
var flightStickReading = {
timestamp : /* Your value */,
buttons : /* Your value */,
hatSwitch : /* Your value */,
roll : /* Your value */,
pitch : /* Your value */,
yaw : /* Your value */,
throttle : /* Your value */
}
Public Structure FlightStickReading
Inheritance
FlightStickReading
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

For information about how to process the information provided in this structure, see Flight stick.

Fields

Buttons

The button currently being pressed.

HatSwitch

The position of the hat switch.

Pitch

The amount of pitch (rotation around the X-axis; forward and backward movement on the flight stick).

Roll

The amount of roll (rotation around the Z-axis; left and right movement on the flight stick).

Throttle

The position of the throttle.

Timestamp

The time that the reading was reported from the hardware.

Yaw

The amount of yaw (rotation around the Y-axis; usually read from twisting the joystick or from some other input).

Applies to

See also