55 references to InputSource
PresentationCore (55)
System\Windows\Input\KeyboardDevice.cs (5)
698
_activeSource = keyboardInput.
InputSource
;
700
else if(_activeSource != keyboardInput.
InputSource
)
705
_activeSource = keyboardInput.
InputSource
;
922
KeyEventArgs previewKeyDown = new KeyEventArgs(this, keyboardInput.
InputSource
, keyboardInput.Timestamp, key);
941
KeyEventArgs previewKeyUp = new KeyEventArgs(this, keyboardInput.
InputSource
, keyboardInput.Timestamp, key);
System\Windows\Input\MouseDevice.cs (13)
1184
rawMouseInputReport.
InputSource
,
1198
else if ((_inputSource is not null) && (rawMouseInputReport.
InputSource
== _inputSource))
1268
rawMouseInputReport.
InputSource
,
1281
rawMouseInputReport.
InputSource
,
1299
Point ptRoot = PointUtil.TryClientToRoot(ptClient, rawMouseInputReport.
InputSource
, false, out success);
1365
rawMouseInputReport.
InputSource
,
1425
_inputSource = rawMouseInputReport.
InputSource
;
1428
else if (_inputSource != rawMouseInputReport.
InputSource
)
1433
_inputSource = rawMouseInputReport.
InputSource
;
1443
if ((_inputSource is not null) && (rawMouseInputReport.
InputSource
== _inputSource))
1476
Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.
InputSource
.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable);
1658
ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.
InputSource
.RootVisual, (DependencyObject)mouseOver);
1891
if ((_inputSource is not null) && (rawMouseInputReport.
InputSource
== _inputSource))
System\Windows\Input\Stylus\Common\RawStylusInput.cs (1)
82
group.Children.Add(new MatrixTransform(_report.
InputSource
.CompositionTarget.TransformFromDevice));
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (2)
276
rawMouseInputReport.
InputSource
,
1344
rawStylusInputReport.
InputSource
,
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
178
ptTablet *= inputReport.
InputSource
.CompositionTarget.TransformFromDevice; // change to measured units now.
System\Windows\Input\Stylus\Wisp\PenContexts.cs (2)
442
transformTabletToView.Children.Add(new MatrixTransform(_stylusLogic.GetTabletToViewTransform(inputReport.
InputSource
, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device)
461
transformTabletToView.Children.Add(new MatrixTransform(_stylusLogic.GetTabletToViewTransform(inputReport.
InputSource
, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (21)
220
coalescedMove.
InputSource
,
446
if (_deferredMouseMove != null && _deferredMouseMove.
InputSource
!= null &&
447
_deferredMouseMove.
InputSource
.CompositionTarget != null &&
448
!_deferredMouseMove.
InputSource
.CompositionTarget.IsDisposed)
520
PenContexts penContexts = GetPenContextsFromHwnd(mouseInputReport.
InputSource
);
538
if (mouseDevice.CriticalActiveSource == mouseInputReport.
InputSource
)
570
mouseInputReport.
InputSource
,
606
if (mouseInputReport.
InputSource
!= _inputManager.PrimaryMouseDevice.CriticalActiveSource)
611
pt = PointUtil.ScreenToClient(pt, mouseInputReport.
InputSource
);
616
mouseInputReport.
InputSource
,
647
HwndSource hwndSource = mouseInputReport.
InputSource
as HwndSource;
710
if (!stylusIsDown && Mouse.Captured != null && !InWindowClientRect(ptMouse, mouseInputReport.
InputSource
))
891
if (stylusInputReport.
InputSource
!= null && stylusInputReport.PenContext != null)
1285
mouseDeactivateInputReport.
InputSource
,
2504
allowEvent = !stylusDevice.InRange && !rawStylusInputReport.
InputSource
.IsDisposed;
2508
if (!stylusDevice.InRange && !rawStylusInputReport.
InputSource
.IsDisposed)
2575
rawStylusInputReport.
InputSource
,
2692
transformTabletToView.Children.Add(new MatrixTransform(GetTabletToViewTransform(rawStylusInputReport.
InputSource
, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device)
2711
transformTabletToView.Children.Add(new MatrixTransform(GetTabletToViewTransform(rawStylusInputReport.
InputSource
, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device)
2799
rawStylusInputReport.
InputSource
,
3254
HwndSource hwndSource = mouseInputReport.
InputSource
as HwndSource;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (10)
1352
GetTabletToElementTransform(report.
InputSource
, null),
1405
GetTabletToElementTransform(report.
InputSource
, null),
1408
PresentationSource inputSource = DetermineValidSource(report.
InputSource
, _eventStylusPoints, report.PenContext.Contexts);
1411
if (inputSource != null && inputSource != report.
InputSource
)
1415
Point oldWindowLocation = _stylusLogic.MeasureUnitsFromDeviceUnits(report.
InputSource
, report.PenContext.Contexts.DestroyedLocation);
1613
if (report != null && report.
InputSource
!= null && _eventStylusPoints != null && _eventStylusPoints.Count > 0)
1623
GetTabletToElementTransform(report.
InputSource
, null),
1626
PresentationSource inputSource = DetermineValidSource(report.
InputSource
, _eventStylusPoints, report.PenContext.Contexts);
1631
if (inputSource != report.
InputSource
)
1635
Point oldWindowLocation = _stylusLogic.MeasureUnitsFromDeviceUnits(report.
InputSource
, report.PenContext.Contexts.DestroyedLocation);