Skip to main content

GetExtraAxisCount

Gets the number of extra axes, or non-mapped axes, present in the device for a given input kind.

Syntax

Parameters

inputKind   _In_
Type: GameInputKind
The input kind whose extra axis count is being requested. extraAxisCount   _Out_
Type: uint32_t*
The number of extra axes, or non-mapped axes, present in the device for the specified input kind.

Return value

Type: HRESULT Function result.

Remarks

Extra axes are controller axes that exist on the physical device but are not part of the standard mapping for the specified input kind. This method is useful for applications that want to access device-specific axes that go beyond the standard input mapping. The obtained count is expected to be used with the GetExtraAxisIndexes method to retrieve the specific indexes of these extra axes and to buffer the correct space to store the axis indexes provided by that method.

Requirements

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

See also

GameInputKind
GetExtraAxisIndexes
GetExtraButtonCount
IGameInputDevice

Version History

Last modified on August 31, 2026