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