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
WidgetKeyboardEventArgs.cs
2
3namespace Gondwana.Widgets;
4
9{
19 int key,
20 KeyAction keyAction,
21 KeyboardModifierState modifiers,
22 long tick = 0)
23 : base(widget, tick)
24 {
25 Key = key;
26 KeyAction = keyAction;
27 Modifiers = modifiers;
28 }
29
33 public int Key { get; }
34
38 public KeyAction KeyAction { get; }
39
44}
Provides the base implementation for widgets that can be drawn and receive pointer,...
Definition WidgetBase.cs:12
WidgetEventArgs(WidgetBase widget, long tick)
Initializes a new instance of the WidgetEventArgs class.
KeyboardModifierState Modifiers
Gets the keyboard modifier state at the time of the event.
int Key
Gets the integer key identifier.
KeyAction KeyAction
Gets the action associated with this key event.
WidgetKeyboardEventArgs(WidgetBase widget, int key, KeyAction keyAction, KeyboardModifierState modifiers, long tick=0)
Initializes a new instance of the WidgetKeyboardEventArgs class.
KeyboardModifierState
Represents the state of keyboard modifier keys (Shift, Ctrl, Alt) that can be pressed simultaneously ...