Table of Contents

Class LegacyKeyboardInputAdapter

Namespace
Goehler.OrbitalCam
Assembly
Goehler.OrbitalCam.Runtime.dll

Reads keyboard input through the Legacy Input Manager and feeds it to the camera. Bind keys for move, rotate, tilt, stepped rotate, and zoom in the Inspector.

[AddComponentMenu("Goehler Studios/Orbital Cam/Input/Legacy Keyboard")]
public class LegacyKeyboardInputAdapter : InputAdapter
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
LegacyKeyboardInputAdapter
Inherited Members

Properties

MoveInput

Continuous move axis (e.g. WASD, left stick). X = strafe, Y = forward.

public override Vector2 MoveInput { get; }

Property Value

Vector2

RotateInput

Continuous rotate-and-tilt axis (e.g. Q/E + F/C, right stick). X = rotate, Y = tilt.

public override Vector2 RotateInput { get; }

Property Value

Vector2

RotateStepInput

Drain-on-read: returns the accumulated step delta in degrees since the last read and resets internal state to zero. X = rotate steps (positive left), Y = tilt steps (positive up).

public override Vector2 RotateStepInput { get; }

Property Value

Vector2

ZoomInput

Continuous zoom axis.

public override float ZoomInput { get; }

Property Value

float

Methods

Sample()

Called once per frame by the camera before any axis getter is read. Pull from the device source here and cache results for the getters.

public override void Sample()