> ## 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.

# CreateInputMapper

> CreateInputMapper

# CreateInputMapper

Creates a IGameInputMapper interface that provides the mapping information for a given input element in a input kind.

## Syntax

```cpp theme={null}
HRESULT CreateInputMapper(
    IGameInputMapper** inputMapper
)
```

### Parameters

*inputMapper*   \_COM\_Outptr\_\
Type: IGameInputMapper\*\*

The resulting [IGameInputMapper](/reference/input/gameinput/interfaces/igameinputmapper/igameinputmapper) interface that provides the mapping information for a given input element in a input kind.

### Return value

Type: HRESULT

This function returns an error result if there are insufficient hardware resources to create the mapper or if the device does not support an input kind that can be mapped.

## Remarks

The `CreateInputMapper` method creates a [IGameInputMapper](/reference/input/gameinput/interfaces/igameinputmapper/igameinputmapper) interface that provides the mapping information for a given input element in a input kind. The input kinds that generate mappings are [GameInputKindArcadeStick](/reference/input/gameinput/enums/gameinputkind), [GameInputKindFlightStick](/reference/input/gameinput/enums/gameinputkind), [GameInputKindGamepad](/reference/input/gameinput/enums/gameinputkind), and [GameInputKindRacingWheel](/reference/input/gameinput/enums/gameinputkind). If the device does not support one of these input kinds, the method returns an error result.

## Requirements

**Header:** GameInput.h

**Library:** gameinput.lib

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

## See also

[GameInput](/reference/input/gameinput/gameinput_members)<br />
[IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)

## Version History

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


## Related topics

- [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)
- [IGameInputMapper](/reference/input/gameinput/interfaces/igameinputmapper/igameinputmapper.md)
- [IGameInputMapper::GetGamepadButtonMapping](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getgamepadbuttonmappinginfo.md)
- [IGameInputMapper::GetGamepadAxisMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getgamepadaxismappinginfo.md)
- [IGameInputMapper::GetRacingWheelButtonMappingInfo](/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getracingwheelbuttonmappinginfo.md)
