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)
1178
rawMouseInputReport.
InputSource
,
1194
else if ((_inputSource is not null) && (rawMouseInputReport.
InputSource
== _inputSource))
1264
rawMouseInputReport.
InputSource
,
1279
rawMouseInputReport.
InputSource
,
1299
Point ptRoot = PointUtil.TryClientToRoot(ptClient, rawMouseInputReport.
InputSource
, false, out success);
1369
rawMouseInputReport.
InputSource
,
1431
_inputSource = rawMouseInputReport.
InputSource
;
1434
else if (_inputSource != rawMouseInputReport.
InputSource
)
1439
_inputSource = rawMouseInputReport.
InputSource
;
1449
if ((_inputSource is not null) && (rawMouseInputReport.
InputSource
== _inputSource))
1482
Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.
InputSource
.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable);
1664
ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.
InputSource
.RootVisual, (DependencyObject)mouseOver);
1905
if ((_inputSource is not null) && (rawMouseInputReport.
InputSource
== _inputSource))
System\Windows\Input\Stylus\Common\RawStylusInput.cs (1)
75
group.Children.Add(new MatrixTransform(_report.
InputSource
.CompositionTarget.TransformFromDevice));
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (2)
259
rawMouseInputReport.
InputSource
,
1329
rawStylusInputReport.
InputSource
,
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
166
ptTablet *= inputReport.
InputSource
.CompositionTarget.TransformFromDevice; // change to measured units now.
System\Windows\Input\Stylus\Wisp\PenContexts.cs (2)
420
transformTabletToView.Children.Add(new MatrixTransform(_stylusLogic.GetTabletToViewTransform(inputReport.
InputSource
, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device)
439
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)
211
coalescedMove.
InputSource
,
440
if (_deferredMouseMove != null && _deferredMouseMove.
InputSource
!= null &&
441
_deferredMouseMove.
InputSource
.CompositionTarget != null &&
442
!_deferredMouseMove.
InputSource
.CompositionTarget.IsDisposed)
516
PenContexts penContexts = GetPenContextsFromHwnd(mouseInputReport.
InputSource
);
534
if (mouseDevice.CriticalActiveSource == mouseInputReport.
InputSource
)
566
mouseInputReport.
InputSource
,
604
if (mouseInputReport.
InputSource
!= _inputManager.PrimaryMouseDevice.CriticalActiveSource)
609
pt = PointUtil.ScreenToClient(pt, mouseInputReport.
InputSource
);
614
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
,
2508
allowEvent = !stylusDevice.InRange && !rawStylusInputReport.
InputSource
.IsDisposed;
2512
if (!stylusDevice.InRange && !rawStylusInputReport.
InputSource
.IsDisposed)
2579
rawStylusInputReport.
InputSource
,
2698
transformTabletToView.Children.Add(new MatrixTransform(GetTabletToViewTransform(rawStylusInputReport.
InputSource
, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device)
2717
transformTabletToView.Children.Add(new MatrixTransform(GetTabletToViewTransform(rawStylusInputReport.
InputSource
, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device)
2805
rawStylusInputReport.
InputSource
,
3268
HwndSource hwndSource = mouseInputReport.
InputSource
as HwndSource;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (10)
1355
GetTabletToElementTransform(report.
InputSource
, null),
1408
GetTabletToElementTransform(report.
InputSource
, null),
1411
PresentationSource inputSource = DetermineValidSource(report.
InputSource
, _eventStylusPoints, report.PenContext.Contexts);
1414
if (inputSource != null && inputSource != report.
InputSource
)
1418
Point oldWindowLocation = _stylusLogic.MeasureUnitsFromDeviceUnits(report.
InputSource
, report.PenContext.Contexts.DestroyedLocation);
1616
if (report != null && report.
InputSource
!= null && _eventStylusPoints != null && _eventStylusPoints.Count > 0)
1626
GetTabletToElementTransform(report.
InputSource
, null),
1629
PresentationSource inputSource = DetermineValidSource(report.
InputSource
, _eventStylusPoints, report.PenContext.Contexts);
1634
if (inputSource != report.
InputSource
)
1638
Point oldWindowLocation = _stylusLogic.MeasureUnitsFromDeviceUnits(report.
InputSource
, report.PenContext.Contexts.DestroyedLocation);