Skip to main content
Retrieves the flight stick properties of the device, such as the labels of its buttons, hat switch, and axes.

Syntax

Parameters

info   _Out_
Type: GameInputFlightStickInfo*
Pointer to a GameInputFlightStickInfo structure that receives the flight stick properties of the device. If the device doesn’t support flight stick input, every member of the structure is set to zero.

Return value

Type: bool true if the device supports flight stick input and info was filled in; otherwise, false.

Remarks

The GetFlightStickInfo method copies the flight stick properties of the device into the caller-provided structure. A device supports flight stick input when the value returned by GetSupportedInput includes GameInputKindFlightStick. If the device doesn’t support flight stick input, GetFlightStickInfo zero-initializes info and returns false. The label members describe the markings printed on the corresponding controls, as GameInputLabel values, so you can show matching prompts in your UI. The extraButtonCount and extraAxisCount members report how many controller buttons and axes the device has beyond the standard flight stick mapping; use GetExtraButtonIndexes and GetExtraAxisIndexes to locate them in the controller state of a reading. Flight stick state is read from readings by using IGameInputReading::GetFlightStickState. The properties returned by this method are fixed for the lifetime of the device, so you can query them once (for example, when the device connects) and cache the result. The following example shows how to query the flight stick properties of a device.
In GameInput v3 and earlier, this information was available from the flightStickInfo member of the GameInputDeviceInfo structure returned by IGameInputDevice::GetDeviceInfo.

Requirements

Header: GameInput.h Library: gameinput.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

Overview of GameInput
GameInputFlightStickInfo
GetSupportedInput
GameInputKind
GameInputLabel
IGameInputReading::GetFlightStickState
IGameInputDevice

Version History

Last modified on November 5, 2026