Table of Contents

Class LegacyTouchInputAdapter

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

Reads touch input through the Legacy Input Manager and feeds it to the camera. Drag-to-pan, drag-to-rotate, and pinch zoom — with configurable finger counts per gesture.

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

Properties

InvertTouchRotation

public bool InvertTouchRotation { get; set; }

Property Value

bool

InvertTouchTilt

public bool InvertTouchTilt { get; set; }

Property Value

bool

IsAvailable

True when the adapter can produce input. Return false to skip the adapter for this frame (e.g. device missing, focus lost).

public override bool IsAvailable { get; }

Property Value

bool

MoveDelta

Pointer-drag move delta in world units, accumulated since the last Sample().

public override Vector3 MoveDelta { get; }

Property Value

Vector3

PointerPosition

Current pointer position in screen pixels. Only meaningful when PointerPositionAvailable is true.

public override Vector2 PointerPosition { get; }

Property Value

Vector2

PointerPositionAvailable

True when PointerPosition is valid (pointer inside the game window, touch active, etc.).

public override bool PointerPositionAvailable { get; }

Property Value

bool

PreventInteractionWhilePointerIsOverUI

public bool PreventInteractionWhilePointerIsOverUI { get; set; }

Property Value

bool

RotateDelta

Pointer-drag rotate delta in degrees, accumulated since the last Sample(). X = rotate, Y = tilt.

public override Vector2 RotateDelta { get; }

Property Value

Vector2

TouchMovementGesture

public TouchGesture TouchMovementGesture { get; set; }

Property Value

TouchGesture

TouchPinchSensitivity

public float TouchPinchSensitivity { get; set; }

Property Value

float

TouchRotationAndTiltGesture

public TouchGesture TouchRotationAndTiltGesture { get; set; }

Property Value

TouchGesture

TouchZoomGesture

public PinchGesture TouchZoomGesture { get; set; }

Property Value

PinchGesture

UseTouchForMovement

public bool UseTouchForMovement { get; set; }

Property Value

bool

UseTouchForRotation

public bool UseTouchForRotation { get; set; }

Property Value

bool

UseTouchForTilt

public bool UseTouchForTilt { get; set; }

Property Value

bool

UseTouchPinchForZoom

public bool UseTouchPinchForZoom { get; set; }

Property Value

bool

ZoomDelta

Wheel or pinch zoom delta, accumulated since the last Sample().

public override float ZoomDelta { 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()