Struct ShipInputActions.ShipControlsActions
Provides access to input actions defined in input action map "ShipControls".
Namespace: NWH.DWP2.ShipController
Assembly: NWH.DWP2.dll
Syntax
public struct ShipInputActions.ShipControlsActions
Constructors
| Edit this page View SourceShipControlsActions(ShipInputActions)
Construct a new instance of the input action map wrapper class.
Declaration
public ShipControlsActions(ShipInputActions wrapper)
Parameters
| Type | Name | Description |
|---|---|---|
| ShipInputActions | wrapper |
Properties
| Edit this page View SourceAnchor
Provides access to the underlying input action "ShipControls/Anchor".
Declaration
public InputAction Anchor { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
BowThruster
Provides access to the underlying input action "ShipControls/BowThruster".
Declaration
public InputAction BowThruster { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
EngineStartStop
Provides access to the underlying input action "ShipControls/EngineStartStop".
Declaration
public InputAction EngineStartStop { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
RotateSail
Provides access to the underlying input action "ShipControls/RotateSail".
Declaration
public InputAction RotateSail { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Steering
Provides access to the underlying input action "ShipControls/Steering".
Declaration
public InputAction Steering { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
SternThruster
Provides access to the underlying input action "ShipControls/SternThruster".
Declaration
public InputAction SternThruster { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
SubmarineDepth
Provides access to the underlying input action "ShipControls/SubmarineDepth".
Declaration
public InputAction SubmarineDepth { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Throttle
Provides access to the underlying input action "ShipControls/Throttle".
Declaration
public InputAction Throttle { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Throttle2
Provides access to the underlying input action "ShipControls/Throttle2".
Declaration
public InputAction Throttle2 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Throttle3
Provides access to the underlying input action "ShipControls/Throttle3".
Declaration
public InputAction Throttle3 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
Throttle4
Provides access to the underlying input action "ShipControls/Throttle4".
Declaration
public InputAction Throttle4 { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
enabled
Declaration
public bool enabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceAddCallbacks(IShipControlsActions)
Adds UnityEngine.InputSystem.InputAction.started, UnityEngine.InputSystem.InputAction.performed and UnityEngine.InputSystem.InputAction.canceled callbacks provided via on all input actions contained in this map.
Declaration
public void AddCallbacks(ShipInputActions.IShipControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| ShipInputActions.IShipControlsActions | instance | Callback instance. |
Remarks
If instance is null or instance have already been added this method does nothing.
See Also
| Edit this page View SourceDisable()
Declaration
public void Disable()
Enable()
Declaration
public void Enable()
Get()
Provides access to the underlying input action map instance.
Declaration
public InputActionMap Get()
Returns
| Type | Description |
|---|---|
| InputActionMap |
RemoveCallbacks(IShipControlsActions)
Unregisters and unregisters all input action callbacks via UnregisterCallbacks(IShipControlsActions).
Declaration
public void RemoveCallbacks(ShipInputActions.IShipControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| ShipInputActions.IShipControlsActions | instance |
See Also
| Edit this page View SourceSetCallbacks(IShipControlsActions)
Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via .
Declaration
public void SetCallbacks(ShipInputActions.IShipControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| ShipInputActions.IShipControlsActions | instance |
Remarks
If instance is null, calling this method will only unregister all existing callbacks but not register any new callbacks.
See Also
Operators
| Edit this page View Sourceimplicit operator InputActionMap(ShipControlsActions)
Implicitly converts an
Declaration
public static implicit operator InputActionMap(ShipInputActions.ShipControlsActions set)
Parameters
| Type | Name | Description |
|---|---|---|
| ShipInputActions.ShipControlsActions | set |
Returns
| Type | Description |
|---|---|
| InputActionMap |