![]() |
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.
|
Represents a touch input source that tracks active contact points and raises lifecycle events when fingers (or pointer-emulated contacts) begin, move, or end on a surface. More...
Properties | |
| IReadOnlyList< TouchPoint > | ActiveTouches [get] |
| Gets the list of touch contact points that are currently active (in contact with the surface). This list is updated before each event is raised and reflects the state at the time of the last pointer action. An empty list indicates no fingers are currently in contact. | |
Events | |
| EventHandler< TouchEventArgs > | TouchBegan |
| Occurs when a new touch contact begins — a finger or pointer first makes contact with the surface. The TouchEventArgs.Touch property contains the new contact point with TouchPhase.Began. | |
| EventHandler< TouchEventArgs > | TouchMoved |
| Occurs when an active touch contact moves across the surface. The TouchEventArgs.Touch property contains the updated contact point with TouchPhase.Moved. | |
| EventHandler< TouchEventArgs > | TouchEnded |
| Occurs when an active touch contact ends — a finger or pointer lifts from the surface, or the contact is cancelled by the system. The TouchEventArgs.Touch property contains the final contact point with TouchPhase.Ended or TouchPhase.Cancelled. | |
Represents a touch input source that tracks active contact points and raises lifecycle events when fingers (or pointer-emulated contacts) begin, move, or end on a surface.
Implementations of this interface are responsible for translating platform-specific pointer or touch events into Gondwana TouchPoint values and maintaining the ActiveTouches collection. On desktop platforms where no hardware touch screen is available, adapters may emulate a single touch point using the mouse cursor.
Definition at line 13 of file ITouchInput.cs.
|
get |
Gets the list of touch contact points that are currently active (in contact with the surface). This list is updated before each event is raised and reflects the state at the time of the last pointer action. An empty list indicates no fingers are currently in contact.
Implemented in Gondwana.Input.Touch.TouchEventPoller.
Definition at line 20 of file ITouchInput.cs.
| EventHandler<TouchEventArgs> Gondwana.Input.Touch.ITouchInput.TouchBegan |
Occurs when a new touch contact begins — a finger or pointer first makes contact with the surface. The TouchEventArgs.Touch property contains the new contact point with TouchPhase.Began.
Definition at line 27 of file ITouchInput.cs.
| EventHandler<TouchEventArgs> Gondwana.Input.Touch.ITouchInput.TouchEnded |
Occurs when an active touch contact ends — a finger or pointer lifts from the surface, or the contact is cancelled by the system. The TouchEventArgs.Touch property contains the final contact point with TouchPhase.Ended or TouchPhase.Cancelled.
Definition at line 42 of file ITouchInput.cs.
| EventHandler<TouchEventArgs> Gondwana.Input.Touch.ITouchInput.TouchMoved |
Occurs when an active touch contact moves across the surface. The TouchEventArgs.Touch property contains the updated contact point with TouchPhase.Moved.
Definition at line 34 of file ITouchInput.cs.