Class SwitchProController
Base class for Nintendo Switch Pro Controllers that provides the correct button mappings for Nintendo's face button layout where A is east, B is south, X is north, and Y is west. If you use InputSystem.GetDevice and the ABXY properties to represent the labels on the device, you must query for this class
Inherited Members
Namespace: UnityEngine.InputSystem.Switch
Assembly: Unity.InputSystem.dll
Syntax
public abstract class SwitchProController : Gamepad, IDualMotorRumble, IHaptics
Properties
aButton
A Button for a Nintendo Switch Pro Controller. If querying via script, ensure you cast the device to a Switch Pro Controller class, rather than using the Gamepad class. The gamepad class will return the state of buttonSouth, whereas this class returns the state of buttonEast
Declaration
public ButtonControl aButton { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
bButton
B Button for a Nintendo Switch Pro Controller. If querying via script, ensure you cast the device to a Switch Pro Controller class, rather than using the Gamepad class. The gamepad class will return the state of buttonEast, whereas this class returns the state of buttonSouth
Declaration
public ButtonControl bButton { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
xButton
X Button for a Nintendo Switch Pro Controller. If querying via script, ensure you cast the device to a Switch Pro Controller class, rather than using the Gamepad class. The gamepad class will return the state of buttonWest, whereas this class returns the state of buttonNorth
Declaration
public ButtonControl xButton { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
yButton
Y Button for a Nintendo Switch Pro Controller. If querying via script, ensure you cast the device to a Switch Pro Controller class, rather than using the Gamepad class. The gamepad class will return the state of buttonNorth, whereas this class returns the state of buttonWest
Declaration
public ButtonControl yButton { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |