Represents a flight stick.
public ref class FlightStick sealed : IGameControllerBatteryInfo
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)] /// [Windows.Foundation.Metadata.DualApiPartition(version=167772163)] /// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] /// [Windows.Foundation.Metadata.Static(Windows.Gaming.Input.IFlightStickStatics, 262144, "Windows.Foundation.UniversalApiContract")] /// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] class FlightStick sealed : IGameControllerBatteryInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)] [Windows.Foundation.Metadata.DualApiPartition(version=167772163)] [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)] [Windows.Foundation.Metadata.Static(typeof(Windows.Gaming.Input.IFlightStickStatics), 262144, "Windows.Foundation.UniversalApiContract")] [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)] public sealed class FlightStick : IGameControllerBatteryInfo
Public NotInheritable Class FlightStick Implements IGameControllerBatteryInfo
Windows 10 requirements
Windows 10 Creators Update (introduced in 10.0.15063.0)
Windows.Foundation.UniversalApiContract (introduced in v4.0)
FlightStick is targeted at simple, arcade-style flight games. It provides several basic inputs, which are derived from the lowest common denominator of inputs available across the majority of popular flight stick devices. These inputs include:
- Two buttons for firing primary and secondary weapons.
- A hat switch for camera view and/or target selection.
- Axis data for pitch, roll, yaw, and throttle position.
Instances of the FlightStick class cannot be created directly; instead, instances of the class are retrieved through the FlightStick.FlightSticks property listing all connected flight sticks or through the FlightStick.FlightStickAdded event.
See Flight stick for more information about how to use the FlightStick class.
FlightStick supports any Xbox One-certified or Xbox 360-compatible flight stick.
The list of all connected flight sticks.
The type of hat switch on the flight stick.
The audio headset attached to the flight stick.
Gets a value that indicates the wireless state of the flight stick.
The user associated with the flight stick.
Returns the given game controller as a flight stick.
Retrieves the button label for the specified button.
Gets a snapshot of the flight stick state.
Gets information about the flight stick's current battery state.
Signals when a new flight stick is connected.
Signals when a flight stick is disconnected.
Signals when a headset is attached to the flight stick.
Signals when a headset is disconnected from the flight stick.
Signals when the user associated with the flight stick has changed.