Skip to main content

CreateInputMapper

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

Syntax

Parameters

inputMapper   _COM_Outptr_
Type: IGameInputMapper**
The resulting 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 interface that provides the mapping information for a given input element in a input kind. The input kinds that generate mappings are GameInputKindArcadeStick, GameInputKindFlightStick, GameInputKindGamepad, and GameInputKindRacingWheel. 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
IGameInputDevice

Version History

Last modified on August 31, 2026