Compartilhar via


GameInputControllerButtonInfo

Describes a button on an input device.

Syntax

typedef struct GameInputControllerButtonInfo {  
    GameInputKind mappedInputKinds;  
    GameInputLabel label;  
    uint16_t legacyDInputIndex;  
    uint16_t legacyHidIndex;  
    uint32_t rawReportIndex;  
    GameInputRawDeviceReportInfo const * inputReport;  
    GameInputRawDeviceReportItemInfo const * inputReportItem;  
} GameInputControllerButtonInfo  

Members

mappedInputKinds
Type: GameInputKind

The kinds of input state, if any, to which this button contributes.

label
Type: GameInputLabel

Physical label for the button.

legacyDInputIndex
Type: uint16_t

Legacy DirectInput index.

legacyHidIndex
Type: uint16_t

Legacy HID index.

rawReportIndex
Type: uint32_t

Index for the raw report.

inputReport
Type: GameInputRawDeviceReportInfo const *

Pointer to the raw device report.

inputReportItem
Type: GameInputRawDeviceReportItemInfo const *

Pointer to the raw device-report item.

Remarks

This 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