Share via


IGameInputReading::GetControllerSwitchState

Retrieves the switch state from a game controller.

Syntax

uint32_t GetControllerSwitchState(
    uint32_t stateArrayCount,
    GameInputSwitchPosition* stateArray
);

Parameters

stateArrayCount   _In_
Type: uint32_t

The expected number of switches on the game controller. This value can be retrieved by calling IGameInputReading::GetControllerSwitchCount.

Input API Overview
IGameInputReading