> ## 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::GetGamepadAxisMappingInfo

> IGameInputMapper::GetGamepadAxisMappingInfo

# IGameInputMapper::GetGamepadAxisMappingInfo

## Syntax

```cpp theme={null}
bool GetGamepadAxisMappingInfo(
    GameInputGamepadAxes axisElement,
    GameInputAxisMapping* mapping
);
```

### Parameters

*axisElement*   \_In\_\
Type: [GameInputGamepadAxes](/reference/input/gameinput/enums/gameinputgamepadaxes)

The specific gamepad axis whose mapping is being queried.

*mapping*   \_Out\_\
Type: [GameInputAxisMapping](/reference/input/gameinput/structs/gameinputaxismapping)

The mapping information of how the axis 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 [GameInputKindGamepad](/reference/input/gameinput/enums/gameinputkind) input kind or if the specified axis 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

- [GameInputGamepadAxes](/reference/input/gameinput/enums/gameinputgamepadaxes.md)
- [IGameInputMapper::GetFlightStickAxisMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getflightstickaxismappinginfo.md)
- [IGameInputMapper::GetRacingWheelAxisMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getracingwheelaxismappinginfo.md)
- [IGameInputMapper::GetGamepadButtonMapping](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getgamepadbuttonmappinginfo.md)
- [IGameInputMapper::GetRacingWheelButtonMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getracingwheelbuttonmappinginfo.md)
