![]() |
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 an adapter for keyboard input, providing access to the currently pressed keys and active modifier states. More...
Public Member Functions | |
| bool | IsDown (int keyCode) |
| Returns true if the specified platform-agnostic key code is currently down. Key codes should be stable integers agreed upon by the adapter and the engine. For WinForms, this should be the Windows Virtual-Key code (0..255). | |
Properties | |
| KeyboardModifierState | CurrentKeyboardModifiers [get] |
| Gets the current state of modifier keys, such as Shift, Ctrl, and Alt. Must be safe to read from the Engine thread at high frequency. | |
Represents an adapter for keyboard input, providing access to the currently pressed keys and active modifier states.
This interface is designed to abstract keyboard input handling, allowing retrieval of pressed keys and modifier states. The implementation of the interface is responsible for keyboard polling, etc.
Definition at line 8 of file IKeyboardAdapter.cs.
| bool Gondwana.Input.Keyboard.IKeyboardAdapter.IsDown | ( | int | keyCode | ) |
Returns true if the specified platform-agnostic key code is currently down. Key codes should be stable integers agreed upon by the adapter and the engine. For WinForms, this should be the Windows Virtual-Key code (0..255).
| keyCode | The key code to query. |
true if the key is currently pressed; otherwise, false.Implemented in Gondwana.Avalonia.Input.Keyboard.AvaloniaKeyboardAdapter, Gondwana.Blazor.Input.Keyboard.BlazorKeyboardAdapter, and Gondwana.WinForms.Input.Keyboard.WinFormsKeyboardAdapter.
|
get |
Gets the current state of modifier keys, such as Shift, Ctrl, and Alt. Must be safe to read from the Engine thread at high frequency.
Implemented in Gondwana.Avalonia.Input.Keyboard.AvaloniaKeyboardAdapter, Gondwana.Blazor.Input.Keyboard.BlazorKeyboardAdapter, and Gondwana.WinForms.Input.Keyboard.WinFormsKeyboardAdapter.
Definition at line 23 of file IKeyboardAdapter.cs.