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.
Loading...
Searching...
No Matches
PrimaryPointerActionEventArgs.cs
1using System.Drawing;
3
4namespace Gondwana.Widgets;
5
9public sealed class PrimaryPointerActionEventArgs : EventArgs
10{
16 public PrimaryPointerActionEventArgs(View view, Point screenPositionPx, bool isTouch, int pointerId)
17 {
18 View = view ?? throw new ArgumentNullException(nameof(view));
19 ScreenPositionPx = screenPositionPx;
20 IsTouch = isTouch;
21 PointerId = pointerId;
22 }
23
25 public View View { get; }
26
28 public Point ScreenPositionPx { get; }
29
31 public bool IsTouch { get; }
32
34 public int PointerId { get; }
35}
View View
Gets the view whose viewport contains this action.
PrimaryPointerActionEventArgs(View view, Point screenPositionPx, bool isTouch, int pointerId)
Creates a gameplay pointer action.
bool IsTouch
Gets whether this action originated from a touch tap.
Point ScreenPositionPx
Gets the action position in logical screen pixels.
int PointerId
Gets the touch contact ID, or the mouse pointer ID for mouse actions.