Class InputSystemShipInputProvider
Ship input provider for Unity's new Input System. Uses ShipInputActions asset for input binding configuration. Supports keyboard, gamepad, and custom input devices through the Input System. Input bindings can be modified by editing the ShipInputActions asset.
Inheritance
Inherited Members
Namespace: NWH.DWP2.ShipController
Assembly: NWH.DWP2.dll
Syntax
public class InputSystemShipInputProvider : ShipInputProvider
Fields
| Edit this page View SourceshipInputActions
Input action asset containing all ship control bindings.
Declaration
public ShipInputActions shipInputActions
Field Value
| Type | Description |
|---|---|
| ShipInputActions |
Methods
| Edit this page View SourceAnchor()
Toggle anchor drop/weigh state.
Declaration
public override bool Anchor()
Returns
| Type | Description |
|---|---|
| bool | True if anchor toggle was triggered this frame. |
Overrides
| Edit this page View SourceAwake()
Declaration
public void Awake()
BowThruster()
Bow thruster input from -1 to 1 for lateral movement at the front.
Declaration
public override float BowThruster()
Returns
| Type | Description |
|---|---|
| float | Bow thruster input value. |
Overrides
| Edit this page View SourceDragObjectModifier()
Modifier key for object dragging.
Declaration
public override bool DragObjectModifier()
Returns
| Type | Description |
|---|---|
| bool | True if drag modifier is held. |
Overrides
| Edit this page View SourceDragObjectPosition()
Mouse or touch position for object dragging in demo scenes.
Declaration
public override Vector2 DragObjectPosition()
Returns
| Type | Description |
|---|---|
| Vector2 | Drag position delta. |
Overrides
| Edit this page View SourceEngineStartStop()
Toggle engine start/stop state.
Declaration
public override bool EngineStartStop()
Returns
| Type | Description |
|---|---|
| bool | True if engine start/stop was triggered this frame. |
Overrides
| Edit this page View SourceRotateSail()
Sail rotation input for sailing vessels.
Declaration
public override float RotateSail()
Returns
| Type | Description |
|---|---|
| float | Sail rotation input value. |
Overrides
| Edit this page View SourceSteering()
Horizontal steering input from -1 (port/left) to 1 (starboard/right).
Declaration
public override float Steering()
Returns
| Type | Description |
|---|---|
| float | Steering input value. |
Overrides
| Edit this page View SourceSternThruster()
Stern thruster input from -1 to 1 for lateral movement at the rear.
Declaration
public override float SternThruster()
Returns
| Type | Description |
|---|---|
| float | Stern thruster input value. |
Overrides
| Edit this page View SourceSubmarineDepth()
Submarine depth control from -1 (surface) to 1 (dive).
Declaration
public override float SubmarineDepth()
Returns
| Type | Description |
|---|---|
| float | Submarine depth input value. |
Overrides
| Edit this page View SourceThrottle()
Primary throttle input from -1 (full reverse) to 1 (full forward).
Declaration
public override float Throttle()
Returns
| Type | Description |
|---|---|
| float | Throttle input value. |
Overrides
| Edit this page View SourceThrottle2()
Secondary throttle input for independent engine control.
Declaration
public override float Throttle2()
Returns
| Type | Description |
|---|---|
| float | Throttle2 input value. |
Overrides
| Edit this page View SourceThrottle3()
Tertiary throttle input for independent engine control.
Declaration
public override float Throttle3()
Returns
| Type | Description |
|---|---|
| float | Throttle3 input value. |
Overrides
| Edit this page View SourceThrottle4()
Quaternary throttle input for independent engine control.
Declaration
public override float Throttle4()
Returns
| Type | Description |
|---|---|
| float | Throttle4 input value. |
Overrides
| Edit this page View SourceUpdate()
Declaration
public void Update()