> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputMapper::GetFlightStickButtonMappingInfo

> IGameInputMapper::GetFlightStickButtonMappingInfo

# IGameInputMapper::GetFlightStickButtonMappingInfo

## Syntax

```cpp theme={null}
bool GetFlightStickButtonMappingInfo(
    GameInputFlightStickButtons buttonElement,
    GameInputButtonMapping* mapping
);
```

### Parameters

*buttonElement*   \_In\_\
Type: [GameInputFlightStickButtons](/reference/input/gameinput/enums/gameinputflightstickbuttons)

The specific flight stick button whose mapping is being queried.

*mapping*   \_Out\_\
type: [GameInputButtonMapping](/reference/input/gameinput/structs/gameinputbuttonmapping)

The mapping information of how the button is mapped from the controller axes, buttons or switches.

### Return value

Type: bool

If the mapping was successfully retrieved. This value is false if the device does not support the [GameInputKindFlightStick](/reference/input/gameinput/enums/gameinputkind) input kind or if the specified button element is not supported by the device.

## Requirements

**Header:** GameInput.h

**Library:** gameinput.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Input API Overview](/build/core-features/common/input/overviews/input-overview)<br />
[IGameInputMapper](/reference/input/gameinput/interfaces/igameinputmapper/igameinputmapper)

## Version History

| Version | Changes     |
| ------- | ----------- |
| **v3**  | Introduced. |


## Related topics

- [GameInputFlightStickButtons](/reference/input/gameinput/enums/gameinputflightstickbuttons.md)
- [IGameInputMapper::GetFlightStickAxisMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getflightstickaxismappinginfo.md)
- [IGameInputMapper::GetArcadeStickButtonMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getarcadestickbuttonmappinginfo.md)
- [IGameInputMapper::GetRacingWheelButtonMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getracingwheelbuttonmappinginfo.md)
- [IGameInputMapper::GetGamepadButtonMapping](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getgamepadbuttonmappinginfo.md)
