![]() |
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.
|
Provides a mouse input adapter for WinForms applications, tracking mouse position, button states, and scroll events. More...
Public Member Functions | |
| WinFormsMouseAdapter (Control control) | |
| Initializes a new instance of the WinFormsMouseAdapter class attached to the specified control. | |
| void | Dispose () |
| Unsubscribes from the control's mouse events. | |
Properties | |
| Point | CurrentPosition [get] |
| Gets the current position of the mouse cursor. | |
| HashSet< MouseButton > | PressedButtons [get] |
| Gets the set of currently pressed mouse buttons, reconciled against the actual OS button state to prevent stale "button down" entries that can occur when a MouseUp event is not received (e.g. because the parent form was temporarily disabled while a modal dialog was shown). Returns a snapshot copy safe for the caller to iterate. | |
| KeyboardModifierState | CurrentKeyboardModifiers [get] |
| Gets the current state of keyboard modifiers (Shift, Ctrl, Alt). | |
| int | ScrollDelta [get] |
| Gets the accumulated scroll wheel delta since the last read, then resets it to zero. | |
Provides a mouse input adapter for WinForms applications, tracking mouse position, button states, and scroll events.
Definition at line 10 of file WinFormsMouseAdapter.cs.
| Gondwana.WinForms.Input.Mouse.WinFormsMouseAdapter.WinFormsMouseAdapter | ( | Control | control | ) |
Initializes a new instance of the WinFormsMouseAdapter class attached to the specified control.
| control | The control to monitor for mouse events. |
| ArgumentNullException | Thrown when control is null. |
Definition at line 65 of file WinFormsMouseAdapter.cs.
| void Gondwana.WinForms.Input.Mouse.WinFormsMouseAdapter.Dispose | ( | ) |
Unsubscribes from the control's mouse events.
Definition at line 118 of file WinFormsMouseAdapter.cs.
|
get |
Gets the current state of keyboard modifiers (Shift, Ctrl, Alt).
Implements Gondwana.Input.Mouse.IMouseAdapter.
Definition at line 53 of file WinFormsMouseAdapter.cs.
|
get |
Gets the current position of the mouse cursor.
Implements Gondwana.Input.Mouse.IMouseAdapter.
Definition at line 22 of file WinFormsMouseAdapter.cs.
|
get |
Gets the set of currently pressed mouse buttons, reconciled against the actual OS button state to prevent stale "button down" entries that can occur when a MouseUp event is not received (e.g. because the parent form was temporarily disabled while a modal dialog was shown). Returns a snapshot copy safe for the caller to iterate.
Implements Gondwana.Input.Mouse.IMouseAdapter.
Definition at line 35 of file WinFormsMouseAdapter.cs.
|
get |
Gets the accumulated scroll wheel delta since the last read, then resets it to zero.
Implements Gondwana.Input.Mouse.IMouseAdapter.
Definition at line 58 of file WinFormsMouseAdapter.cs.