Class AvaloniaKeyboardDispatcher
Provides keyboard event dispatching for Avalonia platform integration.
Inherited Members
Namespace: Evergine.Avalonia
Assembly: Evergine.Avalonia.dll
Syntax
public class AvaloniaKeyboardDispatcher : KeyboardDispatcher
Constructors
AvaloniaKeyboardDispatcher()
Initializes a new instance of the AvaloniaKeyboardDispatcher class.
Declaration
public AvaloniaKeyboardDispatcher()
Methods
Attach(InputElement)
Attaches keyboard event handlers to the given Avalonia Avalonia.Input.InputElement.
Declaration
public void Attach(InputElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| InputElement | element | The Avalonia input element to listen events from. |
Detach()
Detaches keyboard event handlers from the current Avalonia Avalonia.Input.InputElement.
Declaration
public void Detach()
DispatchKeyDown(Key)
Dispatches a key down event to the Evergine input system.
Declaration
public void DispatchKeyDown(Key key)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | The Avalonia key that was pressed. |
DispatchKeyUp(Key)
Dispatches a key up event to the Evergine input system.
Declaration
public void DispatchKeyUp(Key key)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | The Avalonia key that was released. |
DispatchTextInput(string)
Dispatches a text input event to the Evergine input system.
Declaration
public void DispatchTextInput(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text generated by the key press. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()