Example #1
0
 public PointerData(
     TimeSpan?timeStamp           = null,
     PointerChange change         = PointerChange.cancel,
     PointerDeviceKind kind       = PointerDeviceKind.touch,
     PointerSignalKind signalKind = PointerSignalKind.none,
     int device            = 0,
     int pointerIdentifier = 0,
     float physicalX       = 0.0f,
     float physicalY       = 0.0f,
     float physicalDeltaX  = 0.0f,
     float physicalDeltaY  = 0.0f,
     int buttons           = 0,
     bool obscured         = false,
     bool synthesized      = false,
     float pressure        = 0.0f,
     float pressureMin     = 0.0f,
     float pressureMax     = 0.0f,
     float distance        = 0.0f,
     float distanceMax     = 0.0f,
     float size            = 0.0f,
     float radiusMajor     = 0.0f,
     float radiusMinor     = 0.0f,
     float radiusMin       = 0.0f,
     float radiusMax       = 0.0f,
     float orientation     = 0.0f,
     float tilt            = 0.0f,
     int platformData      = 0,
     float scrollDeltaX    = 0.0f,
     float scrollDeltaY    = 0.0f)
 {
     this.timeStamp         = timeStamp ?? TimeSpan.Zero;
     this.change            = change;
     this.kind              = kind;
     this.signalKind        = signalKind;
     this.device            = device;
     this.pointerIdentifier = pointerIdentifier;
     this.physicalX         = physicalX;
     this.physicalY         = physicalY;
     this.physicalDeltaX    = physicalDeltaX;
     this.physicalDeltaY    = physicalDeltaY;
     this.buttons           = buttons;
     this.obscured          = obscured;
     this.synthesized       = synthesized;
     this.pressure          = pressure;
     this.pressureMin       = pressureMin;
     this.pressureMax       = pressureMax;
     this.distance          = distance;
     this.distanceMax       = distanceMax;
     this.size              = size;
     this.radiusMajor       = radiusMajor;
     this.radiusMinor       = radiusMinor;
     this.radiusMin         = radiusMin;
     this.radiusMax         = radiusMax;
     this.orientation       = orientation;
     this.tilt              = tilt;
     this.platformData      = platformData;
     this.scrollDeltaX      = scrollDeltaX;
     this.scrollDeltaY      = scrollDeltaY;
 }
Example #2
0
 public ScrollData(
     TimeSpan timeStamp,
     PointerChange change,
     PointerDeviceKind kind,
     PointerSignalKind signalKind = PointerSignalKind.none,
     int device      = 0,
     float physicalX = 0.0f,
     float physicalY = 0.0f,
     float scrollX   = 0.0f,
     float scrollY   = 0.0f) : base(timeStamp, change, kind, signalKind, device, physicalX, physicalY)
 {
     this.scrollX = scrollX;
     this.scrollY = scrollY;
 }