|
|
|
@ -106,9 +106,9 @@ namespace Avalonia.Native |
|
|
|
_parent.RawMouseEvent(type, timeStamp, modifiers, point, delta); |
|
|
|
} |
|
|
|
|
|
|
|
public void RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key) |
|
|
|
public bool RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key) |
|
|
|
{ |
|
|
|
_parent.RawKeyEvent(type, timeStamp, modifiers, key); |
|
|
|
return _parent.RawKeyEvent(type, timeStamp, modifiers, key); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -118,9 +118,13 @@ namespace Avalonia.Native |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key) |
|
|
|
public bool RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key) |
|
|
|
{ |
|
|
|
Input?.Invoke(new RawKeyEventArgs(_keyboard, timeStamp, (RawKeyEventType)type, (Key)key, (InputModifiers)modifiers)); |
|
|
|
var args = new RawKeyEventArgs(_keyboard, timeStamp, (RawKeyEventType)type, (Key)key, (InputModifiers)modifiers); |
|
|
|
|
|
|
|
Input?.Invoke(args); |
|
|
|
|
|
|
|
return args.Handled; |
|
|
|
} |
|
|
|
|
|
|
|
public void RawMouseEvent(AvnRawMouseEventType type, uint timeStamp, AvnInputModifiers modifiers, AvnPoint point, AvnVector delta) |
|
|
|
|