committed by
GitHub
9 changed files with 183 additions and 7 deletions
@ -0,0 +1,19 @@ |
|||
using Avalonia.Interactivity; |
|||
using Avalonia.VisualTree; |
|||
|
|||
namespace Avalonia.Input |
|||
{ |
|||
public class PointerDeltaEventArgs : PointerEventArgs |
|||
{ |
|||
public Vector Delta { get; set; } |
|||
|
|||
public PointerDeltaEventArgs(RoutedEvent routedEvent, IInteractive? source, |
|||
IPointer pointer, IVisual rootVisual, Point rootVisualPosition, ulong timestamp, |
|||
PointerPointProperties properties, KeyModifiers modifiers, Vector delta) |
|||
: base(routedEvent, source, pointer, rootVisual, rootVisualPosition, |
|||
timestamp, properties, modifiers) |
|||
{ |
|||
Delta = delta; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
namespace Avalonia.Input.Raw |
|||
{ |
|||
public class RawPointerGestureEventArgs : RawPointerEventArgs |
|||
{ |
|||
public RawPointerGestureEventArgs( |
|||
IInputDevice device, |
|||
ulong timestamp, |
|||
IInputRoot root, |
|||
RawPointerEventType gestureType, |
|||
Point position, |
|||
Vector delta, RawInputModifiers inputModifiers) |
|||
: base(device, timestamp, root, gestureType, position, inputModifiers) |
|||
{ |
|||
Delta = delta; |
|||
} |
|||
|
|||
public Vector Delta { get; private set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue