Compartir a través de


GameInputControllerSwitchInfo

Describes a switch on an input device.

Syntax

typedef struct GameInputControllerSwitchInfo {  
    GameInputKind mappedInputKinds;  
    GameInputLabel label;  
    GameInputLabel positionLabels[9];  
    GameInputSwitchKind kind;  
    uint16_t legacyDInputIndex;  
    uint16_t legacyHidIndex;  
    uint32_t rawReportIndex;  
    GameInputRawDeviceReportInfo const * inputReport;  
    GameInputRawDeviceReportItemInfo const * inputReportItem;  
} GameInputControllerSwitchInfo  

Members

mappedInputKinds
Type: GameInputKind

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

label
Type: GameInputLabel

Physical label for the switch.

positionLabels
Type: GameInputLabel[9]

Physical labels for up to nine possible positions of the switch.

kind
Type: GameInputSwitchKind

The type of the switch.

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