Table of Contents

Class Navigation

Namespace
OmegaEngine.Input
Assembly
OmegaEngine.dll

A navigation action mapping two input axes to degrees-of-freedom.

public record Navigation : InputAction, IEquatable<InputAction>, IEquatable<Navigation>
Inheritance
object
Navigation
Implements

Constructors

Navigation(NavigationAxis, NavigationAxis, bool, bool)

A navigation action mapping two input axes to degrees-of-freedom.

public Navigation(NavigationAxis X, NavigationAxis Y, bool ViewportScaling = false, bool CaptureCursor = true)

Parameters

X NavigationAxis

The action to apply for movement along the X axis.

Y NavigationAxis

The action to apply for movement along the Y axis.

ViewportScaling bool

Whether to scale the input based on the size of the input area / viewport.

CaptureCursor bool

Whether to capture and hide the mouse cursor. Only relevant for mouse input.

Properties

CaptureCursor

Whether to capture and hide the mouse cursor. Only relevant for mouse input.

public bool CaptureCursor { get; init; }

Property Value

bool

ViewportScaling

Whether to scale the input based on the size of the input area / viewport.

public bool ViewportScaling { get; init; }

Property Value

bool

X

The action to apply for movement along the X axis.

public NavigationAxis X { get; init; }

Property Value

NavigationAxis

Y

The action to apply for movement along the Y axis.

public NavigationAxis Y { get; init; }

Property Value

NavigationAxis