Class TouchInputScheme
- Namespace
- OmegaEngine.Input
- Assembly
- OmegaEngine.dll
Controls which touch gesture does what.
public record TouchInputScheme : IEquatable<TouchInputScheme>
- Inheritance
-
objectTouchInputScheme
- Implements
Constructors
TouchInputScheme(Navigation?, NavigationAxis?, NavigationAxis?)
Controls which touch gesture does what.
public TouchInputScheme(Navigation? Pan = null, NavigationAxis? Pinch = null, NavigationAxis? Twist = null)
Parameters
PanNavigationHow to handle dragging one or more contacts (panning).
PinchNavigationAxis?Which axis the pinch-to-zoom (scale) gesture drives.
TwistNavigationAxis?Which axis the two-finger rotation (twist) gesture drives.
Properties
Orbit
Orbit around a fixed target. Pan rotates, pinch zooms, twist rolls. Suitable for inspecting a single object or focal point.
public static TouchInputScheme Orbit { get; }
Property Value
Pan
How to handle dragging one or more contacts (panning).
public Navigation? Pan { get; init; }
Property Value
Pinch
Which axis the pinch-to-zoom (scale) gesture drives.
public NavigationAxis? Pinch { get; init; }
Property Value
Planar
Focuses on movement constrained to a plane. Pan translates XY, pinch zooms, twist rotates (yaw). Ideal for top-down or strategy-style navigation.
public static TouchInputScheme Planar { get; }
Property Value
Scene
Scene navigation with translation, zoom and roll. Pan translates XY, pinch zooms, twist rolls. Designed for general-purpose scene inspection.
public static TouchInputScheme Scene { get; }
Property Value
Twist
Which axis the two-finger rotation (twist) gesture drives.
public NavigationAxis? Twist { get; init; }