5 changed files with 45 additions and 26 deletions
@ -1,15 +1,26 @@ |
|||||
|
using System; |
||||
|
|
||||
namespace Avalonia.Input.Raw |
namespace Avalonia.Input.Raw |
||||
{ |
{ |
||||
public class RawTouchEventArgs : RawPointerEventArgs |
public class RawTouchEventArgs : RawPointerEventArgs |
||||
{ |
{ |
||||
public RawTouchEventArgs(IInputDevice device, ulong timestamp, IInputRoot root, |
public RawTouchEventArgs(IInputDevice device, ulong timestamp, IInputRoot root, |
||||
RawPointerEventType type, Point position, RawInputModifiers inputModifiers, |
RawPointerEventType type, Point position, RawInputModifiers inputModifiers, |
||||
long touchPointId) |
long rawPointerId) |
||||
: base(device, timestamp, root, type, position, inputModifiers) |
: base(device, timestamp, root, type, position, inputModifiers) |
||||
{ |
{ |
||||
TouchPointId = touchPointId; |
RawPointerId = rawPointerId; |
||||
|
} |
||||
|
|
||||
|
public RawTouchEventArgs(IInputDevice device, ulong timestamp, IInputRoot root, |
||||
|
RawPointerEventType type, RawPointerPoint point, RawInputModifiers inputModifiers, |
||||
|
long rawPointerId) |
||||
|
: base(device, timestamp, root, type, point, inputModifiers) |
||||
|
{ |
||||
|
RawPointerId = rawPointerId; |
||||
} |
} |
||||
|
|
||||
public long TouchPointId { get; set; } |
[Obsolete("Use RawPointerId")] |
||||
|
public long TouchPointId { get => RawPointerId; set => RawPointerId = value; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue