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