Class MouseNavigation
- Namespace
- OmegaEngine.Input
- Assembly
- OmegaEngine.dll
A navigation action bound to a mouse input.
public record MouseNavigation : MouseAction, IEquatable<MouseAction>, IEquatable<MouseNavigation>
- Inheritance
-
objectMouseNavigation
- Implements
Constructors
MouseNavigation(MouseNavigationAxis, MouseNavigationAxis, bool, bool)
A navigation action bound to a mouse input.
public MouseNavigation(MouseNavigationAxis X, MouseNavigationAxis Y, bool ViewportScaling = false, bool CaptureCursor = true)
Parameters
XMouseNavigationAxisThe action to apply for mouse movement along the X axis.
YMouseNavigationAxisThe action to apply for mouse 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.
Properties
CaptureCursor
Whether to capture and hide the mouse cursor.
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 mouse movement along the X axis.
public MouseNavigationAxis X { get; init; }
Property Value
Y
The action to apply for mouse movement along the Y axis.
public MouseNavigationAxis Y { get; init; }