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
-
objectObjectComponentBehaviourMonoBehaviourLegacyTouchInputAdapter
- Inherited Members
Properties
InvertTouchRotation
public bool InvertTouchRotation { get; set; }
Property Value
InvertTouchTilt
public bool InvertTouchTilt { get; set; }
Property Value
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
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
PreventInteractionWhilePointerIsOverUI
public bool PreventInteractionWhilePointerIsOverUI { get; set; }
Property Value
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
TouchPinchSensitivity
public float TouchPinchSensitivity { get; set; }
Property Value
TouchRotationAndTiltGesture
public TouchGesture TouchRotationAndTiltGesture { get; set; }
Property Value
TouchZoomGesture
public PinchGesture TouchZoomGesture { get; set; }
Property Value
UseTouchForMovement
public bool UseTouchForMovement { get; set; }
Property Value
UseTouchForRotation
public bool UseTouchForRotation { get; set; }
Property Value
UseTouchForTilt
public bool UseTouchForTilt { get; set; }
Property Value
UseTouchPinchForZoom
public bool UseTouchPinchForZoom { get; set; }
Property Value
ZoomDelta
Wheel or pinch zoom delta, accumulated since the last Sample().
public override float ZoomDelta { get; }
Property Value
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()