![]() |
Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
|
Defines an adapter interface for accessing mouse device state, including cursor position, button presses, scroll wheel input, and keyboard modifier states. Implementations of this interface provide abstraction over various mouse input APIs to provide unified access to mouse hardware across different platforms. More...
Properties | |
| Point | CurrentPosition [get] |
| Gets the current position of the mouse cursor in screen or client coordinates, depending on the implementation. This position is typically updated continuously as the user moves the mouse and represents the pixel coordinates where the cursor is currently located. | |
| HashSet< MouseButton > | PressedButtons [get] |
| Gets the set of mouse buttons that are currently pressed. This collection includes identifiers for all buttons that are in the down state, such as MouseButton.Left, MouseButton.Right, MouseButton.Middle, and additional buttons if supported by the hardware. The collection is empty when no buttons are pressed. | |
| KeyboardModifierState | CurrentKeyboardModifiers [get] |
| Gets the current state of keyboard modifier keys (Shift, Ctrl, Alt) at the time of mouse input. This allows mouse event handlers to respond to modified mouse actions, such as Ctrl+Click or Shift+Drag. The state can be a combination of multiple modifiers using bitwise flags. | |
| int | ScrollDelta [get] |
| Gets the accumulated scroll wheel delta since the last poll, measured in implementation-defined units. Positive values indicate upward scrolling (scrolling away from the user), while negative values indicate downward scrolling (scrolling toward the user). The magnitude represents the distance or speed of the scroll. Reading consumes the accumulated delta and resets it to zero. | |
Defines an adapter interface for accessing mouse device state, including cursor position, button presses, scroll wheel input, and keyboard modifier states. Implementations of this interface provide abstraction over various mouse input APIs to provide unified access to mouse hardware across different platforms.
Definition at line 12 of file IMouseAdapter.cs.
|
get |
Gets the current state of keyboard modifier keys (Shift, Ctrl, Alt) at the time of mouse input. This allows mouse event handlers to respond to modified mouse actions, such as Ctrl+Click or Shift+Drag. The state can be a combination of multiple modifiers using bitwise flags.
Implemented in Gondwana.Avalonia.Input.Mouse.AvaloniaMouseAdapter, Gondwana.Blazor.Input.Mouse.BlazorMouseAdapter, and Gondwana.WinForms.Input.Mouse.WinFormsMouseAdapter.
Definition at line 34 of file IMouseAdapter.cs.
|
get |
Gets the current position of the mouse cursor in screen or client coordinates, depending on the implementation. This position is typically updated continuously as the user moves the mouse and represents the pixel coordinates where the cursor is currently located.
Implemented in Gondwana.Avalonia.Input.Mouse.AvaloniaMouseAdapter, Gondwana.Blazor.Input.Mouse.BlazorMouseAdapter, and Gondwana.WinForms.Input.Mouse.WinFormsMouseAdapter.
Definition at line 19 of file IMouseAdapter.cs.
|
get |
Gets the set of mouse buttons that are currently pressed. This collection includes identifiers for all buttons that are in the down state, such as MouseButton.Left, MouseButton.Right, MouseButton.Middle, and additional buttons if supported by the hardware. The collection is empty when no buttons are pressed.
Implemented in Gondwana.Avalonia.Input.Mouse.AvaloniaMouseAdapter, Gondwana.Blazor.Input.Mouse.BlazorMouseAdapter, and Gondwana.WinForms.Input.Mouse.WinFormsMouseAdapter.
Definition at line 27 of file IMouseAdapter.cs.
|
get |
Gets the accumulated scroll wheel delta since the last poll, measured in implementation-defined units. Positive values indicate upward scrolling (scrolling away from the user), while negative values indicate downward scrolling (scrolling toward the user). The magnitude represents the distance or speed of the scroll. Reading consumes the accumulated delta and resets it to zero.
Implemented in Gondwana.Avalonia.Input.Mouse.AvaloniaMouseAdapter, Gondwana.Blazor.Input.Mouse.BlazorMouseAdapter, and Gondwana.WinForms.Input.Mouse.WinFormsMouseAdapter.
Definition at line 42 of file IMouseAdapter.cs.