Table of Contents

Class TouchInputScheme

Namespace
OmegaEngine.Input
Assembly
OmegaEngine.dll

Controls which touch gesture does what.

public record TouchInputScheme : IEquatable<TouchInputScheme>
Inheritance
object
TouchInputScheme
Implements

Constructors

TouchInputScheme(Navigation?, NavigationAxis?, NavigationAxis?)

Controls which touch gesture does what.

public TouchInputScheme(Navigation? Pan = null, NavigationAxis? Pinch = null, NavigationAxis? Twist = null)

Parameters

Pan Navigation

How to handle dragging one or more contacts (panning).

Pinch NavigationAxis?

Which axis the pinch-to-zoom (scale) gesture drives.

Twist NavigationAxis?

Which axis the two-finger rotation (twist) gesture drives.

TouchInputScheme(TouchInputScheme)

protected TouchInputScheme(TouchInputScheme original)

Parameters

original TouchInputScheme

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

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

TouchInputScheme

Pan

How to handle dragging one or more contacts (panning).

public Navigation? Pan { get; init; }

Property Value

Navigation

Pinch

Which axis the pinch-to-zoom (scale) gesture drives.

public NavigationAxis? Pinch { get; init; }

Property Value

NavigationAxis?

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

TouchInputScheme

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

TouchInputScheme

Twist

Which axis the two-finger rotation (twist) gesture drives.

public NavigationAxis? Twist { get; init; }

Property Value

NavigationAxis?

Methods

Deconstruct(out Navigation?, out NavigationAxis?, out NavigationAxis?)

public void Deconstruct(out Navigation? Pan, out NavigationAxis? Pinch, out NavigationAxis? Twist)

Parameters

Pan Navigation
Pinch NavigationAxis?
Twist NavigationAxis?

Equals(TouchInputScheme?)

public virtual bool Equals(TouchInputScheme? other)

Parameters

other TouchInputScheme

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TouchInputScheme?, TouchInputScheme?)

public static bool operator ==(TouchInputScheme? left, TouchInputScheme? right)

Parameters

left TouchInputScheme
right TouchInputScheme

Returns

bool

operator !=(TouchInputScheme?, TouchInputScheme?)

public static bool operator !=(TouchInputScheme? left, TouchInputScheme? right)

Parameters

left TouchInputScheme
right TouchInputScheme

Returns

bool