![]() |
Gondwana Game Engine Development (master) - 2.7.0
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.
|
Captures native Windows touchscreen contacts (WM_TOUCH) from a WinForms render control and its child HWNDs for the standard Gondwana touch poller. More...
Public Member Functions | |
| WinFormsTouchAdapter (Control surface) | |
| Creates the adapter and registers existing and future child HWNDs. | |
| IReadOnlyList< TouchPoint > | ConsumeBeganTouches () |
Drains and returns all touch contacts that began since the last call. Keeping beginnings in a queue prevents a short tap that begins and ends between two engine polls from being lost. Adapters that do not maintain a beginning queue may rely on the default empty implementation; the poller will still discover active contacts from ActiveTouches.
| |
| IReadOnlyList< TouchPoint > | ConsumeEndedTouches () |
Drains and returns all touch contacts that ended (lifted or cancelled) since the last call. Each entry preserves the original TouchPhase (TouchPhase.Ended or TouchPhase.Cancelled) so the poller can distinguish between the two. This method is intended to be called once per engine tick by the TouchEventPoller.
| |
| void | Dispose () |
Properties | |
| IReadOnlyList< TouchPoint > | ActiveTouches [get] |
| Gets the list of touch contact points that are currently active (in contact with the surface). This list reflects the state at the most recent platform pointer event. An empty list indicates no fingers are currently in contact. | |
| bool | IsRegistered [get] |
| Whether a native window has successfully registered for touch. | |
Captures native Windows touchscreen contacts (WM_TOUCH) from a WinForms render control and its child HWNDs for the standard Gondwana touch poller.
The UI thread records touch beginnings and endings, including contacts shorter than one engine frame. TouchEventPoller dispatches them on the engine thread. Mouse/pen input continues through the normal WinForms mouse adapter. Dispose on the WinForms thread, or let the engine dispose the touch poller.
Definition at line 17 of file WinFormsTouchAdapter.cs.
| Gondwana.WinForms.Input.Touch.WinFormsTouchAdapter.WinFormsTouchAdapter | ( | Control | surface | ) |
Creates the adapter and registers existing and future child HWNDs.
Definition at line 35 of file WinFormsTouchAdapter.cs.
| IReadOnlyList< TouchPoint > Gondwana.WinForms.Input.Touch.WinFormsTouchAdapter.ConsumeBeganTouches | ( | ) |
Drains and returns all touch contacts that began since the last call. Keeping beginnings in a queue prevents a short tap that begins and ends between two engine polls from being lost. Adapters that do not maintain a beginning queue may rely on the default empty implementation; the poller will still discover active contacts from ActiveTouches.
Implements Gondwana.Input.Touch.ITouchAdapter.
| IReadOnlyList< TouchPoint > Gondwana.WinForms.Input.Touch.WinFormsTouchAdapter.ConsumeEndedTouches | ( | ) |
Drains and returns all touch contacts that ended (lifted or cancelled) since the last call. Each entry preserves the original TouchPhase (TouchPhase.Ended or TouchPhase.Cancelled) so the poller can distinguish between the two. This method is intended to be called once per engine tick by the TouchEventPoller.
Implements Gondwana.Input.Touch.ITouchAdapter.
| void Gondwana.WinForms.Input.Touch.WinFormsTouchAdapter.Dispose | ( | ) |
Definition at line 238 of file WinFormsTouchAdapter.cs.
|
get |
Gets the list of touch contact points that are currently active (in contact with the surface). This list reflects the state at the most recent platform pointer event. An empty list indicates no fingers are currently in contact.
Implements Gondwana.Input.Touch.ITouchAdapter.
Definition at line 48 of file WinFormsTouchAdapter.cs.
|
get |
Whether a native window has successfully registered for touch.
Definition at line 57 of file WinFormsTouchAdapter.cs.