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
-
objectNavigation
- 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
XNavigationAxisThe action to apply for movement along the X axis.
YNavigationAxisThe action to apply for movement along the Y axis.
ViewportScalingboolWhether to scale the input based on the size of the input area / viewport.
CaptureCursorboolWhether 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
ViewportScaling
Whether to scale the input based on the size of the input area / viewport.
public bool ViewportScaling { get; init; }
Property Value
X
The action to apply for movement along the X axis.
public NavigationAxis X { get; init; }
Property Value
Y
The action to apply for movement along the Y axis.
public NavigationAxis Y { get; init; }