Class MyDevice
Example custom device class using MyDeviceState as its state layout.
Inherited Members
Namespace: DocCodeSamples.Tests
Assembly: Unity.InputSystem.DocCodeSamples.dll
Syntax
[InputControlLayout(stateType = typeof(MyDeviceState))]
public class MyDevice : InputDevice
Properties
axis
The device's analog axis control.
Declaration
public AxisControl axis { get; }
Property Value
| Type | Description |
|---|---|
| AxisControl |
firstButton
The device's first button control.
Declaration
public ButtonControl firstButton { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
secondButton
The device's second button control.
Declaration
public ButtonControl secondButton { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
Methods
FinishSetup()
Looks up the device's child controls after they have been created.
Declaration
protected override void FinishSetup()