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
Gondwana.Widgets.WidgetKeyboardEventArgs Class Referencesealed

Provides data for widget keyboard input events routed by WidgetInputRouter. More...

Inheritance diagram for Gondwana.Widgets.WidgetKeyboardEventArgs:
Gondwana.Widgets.WidgetEventArgs

Public Member Functions

 WidgetKeyboardEventArgs (WidgetBase widget, int key, KeyAction keyAction, KeyboardModifierState modifiers, long tick=0)
 Initializes a new instance of the WidgetKeyboardEventArgs class.

Properties

int Key [get]
 Gets the integer key identifier.
KeyAction KeyAction [get]
 Gets the action associated with this key event.
KeyboardModifierState Modifiers [get]
 Gets the keyboard modifier state at the time of the event.
Properties inherited from Gondwana.Widgets.WidgetEventArgs
WidgetBase Widget [get]
 Gets the widget that raised the callback.
long Tick [get]
 Gets the engine or timer tick associated with the callback.
bool Handled [get, set]
 Gets or sets whether this widget interaction was handled.

Additional Inherited Members

Protected Member Functions inherited from Gondwana.Widgets.WidgetEventArgs
 WidgetEventArgs (WidgetBase widget, long tick)
 Initializes a new instance of the WidgetEventArgs class.

Detailed Description

Provides data for widget keyboard input events routed by WidgetInputRouter.

Definition at line 8 of file WidgetKeyboardEventArgs.cs.

Constructor & Destructor Documentation

◆ WidgetKeyboardEventArgs()

Gondwana.Widgets.WidgetKeyboardEventArgs.WidgetKeyboardEventArgs ( WidgetBase widget,
int key,
KeyAction keyAction,
KeyboardModifierState modifiers,
long tick = 0 )

Initializes a new instance of the WidgetKeyboardEventArgs class.

Parameters
widgetThe widget that raised the event.
keyThe integer key identifier (as routed from the underlying keyboard adapter).
keyActionThe key action (pressed, released, repeated).
modifiersThe keyboard modifier state at the time of the event.
tickThe engine tick at which the event was emitted.

Definition at line 18 of file WidgetKeyboardEventArgs.cs.

Property Documentation

◆ Key

int Gondwana.Widgets.WidgetKeyboardEventArgs.Key
get

Gets the integer key identifier.

Definition at line 33 of file WidgetKeyboardEventArgs.cs.

◆ KeyAction

KeyAction Gondwana.Widgets.WidgetKeyboardEventArgs.KeyAction
get

Gets the action associated with this key event.

Definition at line 38 of file WidgetKeyboardEventArgs.cs.

◆ Modifiers

KeyboardModifierState Gondwana.Widgets.WidgetKeyboardEventArgs.Modifiers
get

Gets the keyboard modifier state at the time of the event.

Definition at line 43 of file WidgetKeyboardEventArgs.cs.