Class DualShock3GamepadHID
Inherited Members
Namespace: UnityEngine.InputSystem.DualShock
Assembly: Unity.InputSystem.dll
Syntax
public class DualShock3GamepadHID : DualShockGamepad, IDualShockHaptics, IDualMotorRumble, IHaptics
Properties
leftTriggerButton
Declaration
public ButtonControl leftTriggerButton { get; protected set; }
Property Value
Type | Description |
---|---|
ButtonControl |
playStationButton
Declaration
public ButtonControl playStationButton { get; protected set; }
Property Value
Type | Description |
---|---|
ButtonControl |
rightTriggerButton
Declaration
public ButtonControl rightTriggerButton { get; protected set; }
Property Value
Type | Description |
---|---|
ButtonControl |
Methods
FinishSetup()
Perform final initialization tasks after the control hierarchy has been put into place.
Declaration
protected override void FinishSetup()
Overrides
Remarks
This method can be overridden to perform control- or device-specific setup work. The most common use case is for looking up child controls and storing them in local getters.
public class MyDevice : InputDevice
{
public ButtonControl button { get; private set; }
public AxisControl axis { get; private set; }
protected override void OnFinishSetup()
{
// Cache controls in getters.
button = GetChildControl("button");
axis = GetChildControl("axis");
}
}</code></pre></example>