Class DualShockGamepad
A Sony DualShock controller.
Inherited Members
Namespace: UnityEngine.InputSystem.Plugins.DualShock
Syntax
public class DualShockGamepad : Gamepad, IDualShockHaptics, IDualMotorRumble, IHaptics
Properties
circleButton
Declaration
public ButtonControl circleButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
crossButton
Declaration
public ButtonControl crossButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
current
Declaration
public static DualShockGamepad current { get; }
Property Value
Type | Description |
---|---|
DualShockGamepad |
L1
Declaration
public ButtonControl L1 { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
L2
Declaration
public ButtonControl L2 { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
L3
Declaration
public ButtonControl L3 { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
optionsButton
Declaration
public ButtonControl optionsButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
R1
Declaration
public ButtonControl R1 { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
R2
Declaration
public ButtonControl R2 { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
R3
Declaration
public ButtonControl R3 { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
shareButton
Declaration
public ButtonControl shareButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
squareButton
Declaration
public ButtonControl squareButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
touchpadButton
Declaration
public ButtonControl touchpadButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
triangleButton
Declaration
public ButtonControl triangleButton { get; }
Property Value
Type | Description |
---|---|
ButtonControl |
Methods
FinishSetup(InputDeviceBuilder)
Declaration
protected override void FinishSetup(InputDeviceBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
InputDeviceBuilder | builder |
Overrides
MakeCurrent()
Declaration
public override void MakeCurrent()
Overrides
OnRemoved()
Declaration
protected override void OnRemoved()
Overrides
SetLightBarColor(Color)
Declaration
public virtual void SetLightBarColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |