Class InputSystemSceneInputProvider
Unity Input System implementation of scene input provider. Handles camera controls and scene navigation using the new Input System.
Inheritance
Inherited Members
Namespace: NWH.Common.Input
Assembly: NWH.Common.dll
Syntax
public class InputSystemSceneInputProvider : SceneInputProviderBase
Fields
| Edit this page View SourcesceneInputActions
Declaration
public SceneInputActions sceneInputActions
Field Value
| Type | Description |
|---|---|
| SceneInputActions |
Methods
| Edit this page View SourceAwake()
Declaration
public override void Awake()
Overrides
| Edit this page View SourceCameraPanning()
Returns camera panning input as a Vector2 (x = horizontal, y = vertical).
Declaration
public override Vector2 CameraPanning()
Returns
| Type | Description |
|---|---|
| Vector2 |
Overrides
| Edit this page View SourceCameraPanningModifier()
Returns true when the camera panning modifier button is held. If requireCameraPanningModifier is false, always returns true.
Declaration
public override bool CameraPanningModifier()
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceCameraRotation()
Returns camera rotation input as a Vector2 (x = horizontal, y = vertical).
Declaration
public override Vector2 CameraRotation()
Returns
| Type | Description |
|---|---|
| Vector2 |
Overrides
| Edit this page View SourceCameraRotationModifier()
Returns true when the camera rotation modifier button is held. If requireCameraRotationModifier is false, always returns true.
Declaration
public override bool CameraRotationModifier()
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceCameraZoom()
Returns camera zoom input value. Positive = zoom in, negative = zoom out.
Declaration
public override float CameraZoom()
Returns
| Type | Description |
|---|---|
| float |
Overrides
| Edit this page View SourceChangeCamera()
Returns true when the change camera button is pressed.
Declaration
public override bool ChangeCamera()
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceChangeVehicle()
Returns true when the change vehicle button is pressed.
Declaration
public override bool ChangeVehicle()
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceCharacterMovement()
Returns character movement input as a Vector2 (x = horizontal, y = forward/back).
Declaration
public override Vector2 CharacterMovement()
Returns
| Type | Description |
|---|---|
| Vector2 |
Overrides
| Edit this page View SourceToggleGUI()
Returns true when the toggle GUI button is pressed.
Declaration
public override bool ToggleGUI()
Returns
| Type | Description |
|---|---|
| bool |