Share via


GameInputControllerInfo

Describes the properties of a controller.

Syntax

struct GameInputControllerInfo
{
    uint32_t                             controllerAxisCount;
    const GameInputLabel*                controllerAxisLabels;
    uint32_t                             controllerButtonCount;
    const GameInputLabel*                controllerButtonLabels;
    uint32_t                             controllerSwitchCount;
    const GameInputControllerSwitchInfo* controllerSwitchInfo;
};

Members

controllerAxisCount
Type: uint32_t

The number of axes on the controller.

controllerAxisLabels
Type: GameInputLabel const *

The labels for the axes on the controller.

controllerButtonCount
Type: uint32_t

The number of buttons on the controller.

controllerButtonLabels
Type: GameInputLabel const *

The labels for the buttons on the controller.

controllerSwitchCount
Type: uint32_t

The number of switches on the controller.

controllerSwitchInfo
Type: GameInputControllerSwitchInfo const *

Information about the switches on the controller.

Remarks

The fields in the GameInputControllerInfo structure that are pointers to variable-sized arrays of information about the controller. NULL pointers indicate that the corresponding feature is not available or supported by the controller. The number of elements in each array is indicated by a corresponding field in the structure (as noted in the SAL annotations).

TThis structure is used in the GameInputDeviceInfo structure. GameInputDeviceInfo is used by the IGameInputDevice::GetDeviceInfo method.

For more information, see GameInput devices.

Requirements

Header: GameInput.h

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See Also

Overview of GameInput

GameInput