55 references to InputSource
PresentationCore (55)
System\Windows\Input\KeyboardDevice.cs (5)
697_activeSource = keyboardInput.InputSource; 699else if(_activeSource != keyboardInput.InputSource) 704_activeSource = keyboardInput.InputSource; 918KeyEventArgs previewKeyDown = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key); 937KeyEventArgs previewKeyUp = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
System\Windows\Input\MouseDevice.cs (13)
1177rawMouseInputReport.InputSource, 1193else if ((_inputSource is not null) && (rawMouseInputReport.InputSource == _inputSource)) 1263rawMouseInputReport.InputSource, 1278rawMouseInputReport.InputSource, 1298Point ptRoot = PointUtil.TryClientToRoot(ptClient, rawMouseInputReport.InputSource, false, out success); 1368rawMouseInputReport.InputSource, 1430_inputSource = rawMouseInputReport.InputSource; 1433else if (_inputSource != rawMouseInputReport.InputSource) 1438_inputSource = rawMouseInputReport.InputSource; 1445if ((_inputSource is not null) && (rawMouseInputReport.InputSource == _inputSource)) 1478Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable); 1660ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)mouseOver); 1901if ((_inputSource is not null) && (rawMouseInputReport.InputSource == _inputSource))
System\Windows\Input\Stylus\Common\RawStylusInput.cs (1)
74group.Children.Add(new MatrixTransform(_report.InputSource.CompositionTarget.TransformFromDevice));
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (2)
258rawMouseInputReport.InputSource, 1328rawStylusInputReport.InputSource,
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (1)
165ptTablet *= inputReport.InputSource.CompositionTarget.TransformFromDevice; // change to measured units now.
System\Windows\Input\Stylus\Wisp\PenContexts.cs (2)
419transformTabletToView.Children.Add(new MatrixTransform(_stylusLogic.GetTabletToViewTransform(inputReport.InputSource, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device) 438transformTabletToView.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)
210coalescedMove.InputSource, 439if (_deferredMouseMove != null && _deferredMouseMove.InputSource != null && 440_deferredMouseMove.InputSource.CompositionTarget != null && 441!_deferredMouseMove.InputSource.CompositionTarget.IsDisposed) 515PenContexts penContexts = GetPenContextsFromHwnd(mouseInputReport.InputSource); 533if (mouseDevice.CriticalActiveSource == mouseInputReport.InputSource) 565mouseInputReport.InputSource, 603if (mouseInputReport.InputSource != _inputManager.PrimaryMouseDevice.CriticalActiveSource) 608pt = PointUtil.ScreenToClient(pt, mouseInputReport.InputSource); 613mouseInputReport.InputSource, 646HwndSource hwndSource = mouseInputReport.InputSource as HwndSource; 709if (!stylusIsDown && Mouse.Captured != null && !InWindowClientRect(ptMouse, mouseInputReport.InputSource)) 890if (stylusInputReport.InputSource != null && stylusInputReport.PenContext != null) 1284mouseDeactivateInputReport.InputSource, 2507allowEvent = !stylusDevice.InRange && !rawStylusInputReport.InputSource.IsDisposed; 2511if (!stylusDevice.InRange && !rawStylusInputReport.InputSource.IsDisposed) 2578rawStylusInputReport.InputSource, 2697transformTabletToView.Children.Add(new MatrixTransform(GetTabletToViewTransform(rawStylusInputReport.InputSource, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device) 2716transformTabletToView.Children.Add(new MatrixTransform(GetTabletToViewTransform(rawStylusInputReport.InputSource, stylusDevice.TabletDevice))); // this gives matrix in measured units (not device) 2804rawStylusInputReport.InputSource, 3267HwndSource hwndSource = mouseInputReport.InputSource as HwndSource;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (10)
1351GetTabletToElementTransform(report.InputSource, null), 1404GetTabletToElementTransform(report.InputSource, null), 1407PresentationSource inputSource = DetermineValidSource(report.InputSource, _eventStylusPoints, report.PenContext.Contexts); 1410if (inputSource != null && inputSource != report.InputSource) 1414Point oldWindowLocation = _stylusLogic.MeasureUnitsFromDeviceUnits(report.InputSource, report.PenContext.Contexts.DestroyedLocation); 1612if (report != null && report.InputSource != null && _eventStylusPoints != null && _eventStylusPoints.Count > 0) 1622GetTabletToElementTransform(report.InputSource, null), 1625PresentationSource inputSource = DetermineValidSource(report.InputSource, _eventStylusPoints, report.PenContext.Contexts); 1630if (inputSource != report.InputSource) 1634Point oldWindowLocation = _stylusLogic.MeasureUnitsFromDeviceUnits(report.InputSource, report.PenContext.Contexts.DestroyedLocation);