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.
TouchInputScheme(TouchInputScheme)
protected TouchInputScheme(TouchInputScheme original)
Parameters
originalTouchInputScheme
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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; }
Property Value
Methods
Deconstruct(out Navigation?, out NavigationAxis?, out NavigationAxis?)
public void Deconstruct(out Navigation? Pan, out NavigationAxis? Pinch, out NavigationAxis? Twist)
Parameters
PanNavigationPinchNavigationAxis?TwistNavigationAxis?
Equals(TouchInputScheme?)
public virtual bool Equals(TouchInputScheme? other)
Parameters
otherTouchInputScheme
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TouchInputScheme?, TouchInputScheme?)
public static bool operator ==(TouchInputScheme? left, TouchInputScheme? right)
Parameters
leftTouchInputSchemerightTouchInputScheme
Returns
operator !=(TouchInputScheme?, TouchInputScheme?)
public static bool operator !=(TouchInputScheme? left, TouchInputScheme? right)
Parameters
leftTouchInputSchemerightTouchInputScheme