Class MouseInputScheme
- Namespace
- OmegaEngine.Input
- Assembly
- OmegaEngine.dll
Controls which mouse button does what.
public record MouseInputScheme : IEquatable<MouseInputScheme>
- Inheritance
-
MouseInputScheme
- Implements
- Inherited Members
- Extension Methods
Constructors
MouseInputScheme(MouseAction?, MouseAction?, MouseAction?)
Controls which mouse button does what.
public MouseInputScheme(MouseAction? LeftDrag = null, MouseAction? RightDrag = null, MouseAction? MiddleDrag = null)
Parameters
LeftDragMouseActionHow to handle dragging the mouse while the left button is pressed.
RightDragMouseActionHow to handle dragging the mouse while the right button is pressed.
MiddleDragMouseActionHow to handle dragging the mouse while the middle button or both the left and the right button are pressed.
Properties
FreeLook
Enables free-look navigation. Left button for rotation, right button for XZ movement. Suitable for first-person navigation scenarios.
public static MouseInputScheme FreeLook { get; }
Property Value
LeftDrag
How to handle dragging the mouse while the left button is pressed.
public MouseAction? LeftDrag { get; init; }
Property Value
MiddleDrag
How to handle dragging the mouse while the middle button or both the left and the right button are pressed.
public MouseAction? MiddleDrag { get; init; }
Property Value
Planar
Focuses on movement constrained to a plane. Left button for area selection, right button for XY panning, middle button for rotation and zoom. Ideal for top-down or strategy-style navigation.
public static MouseInputScheme Planar { get; }
Property Value
RightDrag
How to handle dragging the mouse while the right button is pressed.
public MouseAction? RightDrag { get; init; }
Property Value
Scene
Scene navigation with full six degrees of freedom. Left button for XY panning, right button for rotation, middle button for roll and zoom. Designed for general-purpose scene inspection.
public static MouseInputScheme Scene { get; }