Share via


RawGameController.GetSwitchKind(Int32) Method

Definition

Gets the type of the specified switch on the raw game controller.

public:
 virtual GameControllerSwitchKind GetSwitchKind(int switchIndex) = GetSwitchKind;
GameControllerSwitchKind GetSwitchKind(int const& switchIndex);
public GameControllerSwitchKind GetSwitchKind(int switchIndex);
function getSwitchKind(switchIndex)
Public Function GetSwitchKind (switchIndex As Integer) As GameControllerSwitchKind

Parameters

switchIndex
Int32

int

The index in the raw game controller's switch array of the switch whose type you are querying.

Returns

The type of the given switch on the raw game controller.

Remarks

This function takes an integer, which is the index in the raw game controller's switch array that points to the switch you want to query. You can create your own switch array and then populate it with values representing each switch's state using RawGameController.GetCurrentReading. See Raw game controller for more information.

Applies to

See also