|
|
|
@ -31,6 +31,7 @@ namespace Avalonia.Windowing.Bindings |
|
|
|
private readonly EventsLoopProxy _eventsLoopProxy; |
|
|
|
private readonly EventNotifier _notifier; |
|
|
|
|
|
|
|
public event KeyboardEventCallback OnKeyboardEvent; |
|
|
|
public event MouseEventCallback OnMouseEvent; |
|
|
|
public event AwakenedEventCallback OnAwakened; |
|
|
|
public event ResizeEventCallback OnResized; |
|
|
|
@ -42,6 +43,7 @@ namespace Avalonia.Windowing.Bindings |
|
|
|
_notifier = new EventNotifier() |
|
|
|
{ |
|
|
|
OnMouseEvent = (IntPtr windowId, MouseEvent mouseEvent) => OnMouseEvent?.Invoke(windowId, mouseEvent), |
|
|
|
OnKeyboardEvent = (IntPtr windowId, KeyboardEvent keyboardEvent) => OnKeyboardEvent?.Invoke(windowId, keyboardEvent), |
|
|
|
OnResized = (IntPtr windowId, ResizeEvent resizeEvent) => OnResized?.Invoke(windowId, resizeEvent), |
|
|
|
OnAwakened = () => OnAwakened?.Invoke() |
|
|
|
}; |
|
|
|
|