1 instantiation of RawMouseActions
PresentationCore (1)
System\Windows\Input\MouseDevice.cs (1)
2041RawMouseActions actions = new RawMouseActions();
219 references to RawMouseActions
PresentationCore (219)
System\Windows\Input\MouseDevice.cs (81)
902RawMouseActions.AbsoluteMove, 1170if ((rawMouseInputReport.Actions & RawMouseActions.Activate) == RawMouseActions.Activate) 1176if ((rawMouseInputReport.Actions & ~RawMouseActions.Activate) != 0) 1185rawMouseInputReport.Actions & ~RawMouseActions.Activate, 1241if ((rawMouseInputReport.Actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 1256if ((rawMouseInputReport.Actions & RawMouseActions.AbsoluteMove) == RawMouseActions.AbsoluteMove) 1260if ((rawMouseInputReport.Actions & ~(RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor)) != 0) 1269rawMouseInputReport.Actions & ~(RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor), 1282rawMouseInputReport.Actions & (RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor), 1366RawMouseActions.Activate, 1398RawMouseActions actions = GetNonRedundantActions(e); 1399RawMouseActions originalActions = actions; 1407if ((rawMouseInputReport.Actions & RawMouseActions.Activate) == RawMouseActions.Activate) 1411actions |= RawMouseActions.Activate; 1449if ((rawMouseInputReport.Actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 1458if ((rawMouseInputReport.Actions & RawMouseActions.CancelCapture) == RawMouseActions.CancelCapture) 1467if ((rawMouseInputReport.Actions & RawMouseActions.AbsoluteMove) == RawMouseActions.AbsoluteMove) 1699actions |= RawMouseActions.AbsoluteMove; 1707actions |= RawMouseActions.QueryCursor; 1712if ((rawMouseInputReport.Actions & RawMouseActions.VerticalWheelRotate) == RawMouseActions.VerticalWheelRotate) 1716actions |= RawMouseActions.VerticalWheelRotate; 1723if ((rawMouseInputReport.Actions & RawMouseActions.QueryCursor) == RawMouseActions.QueryCursor) 1727actions |= RawMouseActions.QueryCursor; 1730ReadOnlySpan<RawMouseActions> ButtonPressActions = stackalloc RawMouseActions[5] 1732RawMouseActions.Button1Press, 1733RawMouseActions.Button2Press, 1734RawMouseActions.Button3Press, 1735RawMouseActions.Button4Press, 1736RawMouseActions.Button5Press 1739ReadOnlySpan<RawMouseActions> ButtonReleaseActions = stackalloc RawMouseActions[5] 1741RawMouseActions.Button1Release, 1742RawMouseActions.Button2Release, 1743RawMouseActions.Button3Release, 1744RawMouseActions.Button4Release, 1745RawMouseActions.Button5Release 1895RawMouseActions actions = GetNonRedundantActions(e); 1903if ((actions & RawMouseActions.Activate) == RawMouseActions.Activate) 1910if ((actions & RawMouseActions.VerticalWheelRotate) == RawMouseActions.VerticalWheelRotate) 1930if ((actions & RawMouseActions.Button1Press) == RawMouseActions.Button1Press) 1939if ((actions & RawMouseActions.Button1Release) == RawMouseActions.Button1Release) 1948if ((actions & RawMouseActions.Button2Press) == RawMouseActions.Button2Press) 1957if ((actions & RawMouseActions.Button2Release) == RawMouseActions.Button2Release) 1966if ((actions & RawMouseActions.Button3Press) == RawMouseActions.Button3Press) 1975if ((actions & RawMouseActions.Button3Release) == RawMouseActions.Button3Release) 1984if ((actions & RawMouseActions.Button4Press) == RawMouseActions.Button4Press) 1993if ((actions & RawMouseActions.Button4Release) == RawMouseActions.Button4Release) 2002if ((actions & RawMouseActions.Button5Press) == RawMouseActions.Button5Press) 2011if ((actions & RawMouseActions.Button5Release) == RawMouseActions.Button5Release) 2021if ((actions & RawMouseActions.AbsoluteMove) == RawMouseActions.AbsoluteMove) 2030if ((actions & RawMouseActions.QueryCursor) == RawMouseActions.QueryCursor) 2039private RawMouseActions GetNonRedundantActions(NotifyInputEventArgs e) 2041RawMouseActions actions = new RawMouseActions(); 2048actions = (RawMouseActions) o;
System\Windows\Input\RawMouseInputReport.cs (48)
55RawMouseActions actions, 62throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawMouseActions)); 75public RawMouseActions Actions {get {return _actions;}} 99internal static bool IsValidRawMouseActions(RawMouseActions actions) 101if (actions == RawMouseActions.None) 104if ((( RawMouseActions.AttributesChanged | RawMouseActions.Activate | RawMouseActions.Deactivate | 105RawMouseActions.RelativeMove | RawMouseActions.AbsoluteMove | RawMouseActions.VirtualDesktopMove | 106RawMouseActions.Button1Press | RawMouseActions.Button1Release | 107RawMouseActions.Button2Press | RawMouseActions.Button2Release | 108RawMouseActions.Button3Press | RawMouseActions.Button3Release | 109RawMouseActions.Button4Press | RawMouseActions.Button4Release | 110RawMouseActions.Button5Press | RawMouseActions.Button5Release | 111RawMouseActions.VerticalWheelRotate | RawMouseActions.HorizontalWheelRotate | 112RawMouseActions.CancelCapture | 113RawMouseActions.QueryCursor) & actions) == actions) 115if (!(((RawMouseActions.Deactivate & actions) == actions && RawMouseActions.Deactivate != actions ) || 116(((RawMouseActions.Button1Press | RawMouseActions.Button1Release) & actions) == (RawMouseActions.Button1Press | RawMouseActions.Button1Release)) || 117(((RawMouseActions.Button2Press | RawMouseActions.Button2Release) & actions) == (RawMouseActions.Button2Press | RawMouseActions.Button2Release)) || 118(((RawMouseActions.Button3Press | RawMouseActions.Button3Release) & actions) == (RawMouseActions.Button3Press | RawMouseActions.Button3Release)) || 119(((RawMouseActions.Button4Press | RawMouseActions.Button4Release) & actions) == (RawMouseActions.Button4Press | RawMouseActions.Button4Release)) || 120(((RawMouseActions.Button5Press | RawMouseActions.Button5Release) & actions) == (RawMouseActions.Button5Press | RawMouseActions.Button5Release)))) 128private RawMouseActions _actions;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (4)
237if ((rawMouseInputReport.Actions & RawMouseActions.Activate) == RawMouseActions.Activate) 250case RawMouseActions.AbsoluteMove: 266case RawMouseActions.CancelCapture:
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
533if ((mouseInputReport.Actions & RawMouseActions.Deactivate) != RawMouseActions.Deactivate)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (42)
500RawMouseActions actions = mouseInputReport.Actions; 514if ((actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 562else if ((actions & RawMouseActions.CancelCapture) != 0) 584else if ((actions & RawMouseActions.Activate) != 0) 617RawMouseActions.Activate, // Only let activate happen. 636else if ((actions & (RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor | 637RawMouseActions.Button1Press | RawMouseActions.Button1Release | 638RawMouseActions.Button2Press | RawMouseActions.Button2Release)) != 0) 642if ((actions & RawMouseActions.Button1Press) != 0 && CurrentStylusDevice != null && 721if ((actions & (RawMouseActions.Button1Press | RawMouseActions.Button2Press)) == 0) 731if ((actions & RawMouseActions.Button1Press) != 0 && CurrentStylusDevice != null && 759if ((actions & (RawMouseActions.Button1Press | RawMouseActions.Button2Press)) == 0) 766else if ((actions & ~(RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor)) == 0) 833Debug.Assert((actions & ~(RawMouseActions.Button3Press | RawMouseActions.Button3Release | 834RawMouseActions.Button4Press | RawMouseActions.Button4Release | 835RawMouseActions.Button5Press | RawMouseActions.Button5Release | 836RawMouseActions.VerticalWheelRotate | 837RawMouseActions.HorizontalWheelRotate)) == 0); 1295RawMouseActions.Deactivate, 1742RawMouseActions actions = stylusDevice.GetMouseActionsFromStylusEventAndPlaybackCachedDown(stagingItem.Input.RoutedEvent, stylusArgs); 1744if (actions != RawMouseActions.None) 1762actions |= RawMouseActions.Activate; 1834if ((mouseInputReport.Actions & RawMouseActions.Deactivate) != RawMouseActions.Deactivate) 1965internal bool UpdateMouseButtonState(RawMouseActions actions) 1971case RawMouseActions.Button1Press: 1979case RawMouseActions.Button1Release: 1987case RawMouseActions.Button2Press: 1995case RawMouseActions.Button2Release: 2830RawMouseActions actions = RawMouseActions.AbsoluteMove; 2837actions |= RawMouseActions.Activate;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (11)
1674RawMouseActions actions = _fLeftButtonDownTrigger ? RawMouseActions.Button1Press : RawMouseActions.Button2Press; 1686actions |= RawMouseActions.Activate; 1736internal RawMouseActions GetMouseActionsFromStylusEventAndPlaybackCachedDown(RoutedEvent stylusEvent, StylusEventArgs stylusArgs) 1779return RawMouseActions.AbsoluteMove; 1796return RawMouseActions.AbsoluteMove; 1807RawMouseActions actions = _fLeftButtonDownTrigger ? 1808RawMouseActions.Button1Release : 1809RawMouseActions.Button2Release; 1822return RawMouseActions.None;
System\Windows\InterOp\HwndMouseInputProvider.cs (31)
172RawMouseActions.AbsoluteMove, 452RawMouseActions.AbsoluteMove, 481RawMouseActions.VerticalWheelRotate, 506RawMouseActions.Button1Press, 525RawMouseActions.Button1Release, 543RawMouseActions.Button2Press, 560RawMouseActions.Button2Release, 578RawMouseActions.Button3Press, 595RawMouseActions.Button3Release, 609RawMouseActions actions = 0; 612actions = RawMouseActions.Button4Press; 616actions = RawMouseActions.Button5Press; 637RawMouseActions actions = 0; 640actions = RawMouseActions.Button4Release; 644actions = RawMouseActions.Button5Release; 746RawMouseActions.CancelCapture, 987RawMouseActions.Deactivate, 1228RawMouseActions actions, 1249actions = RawMouseActions.Deactivate; 1257if((actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 1264else if((actions & RawMouseActions.CancelCapture) == RawMouseActions.CancelCapture) 1268else if(!_active && (actions & RawMouseActions.VerticalWheelRotate) == RawMouseActions.VerticalWheelRotate) 1337actions |= RawMouseActions.Activate; 1354if((actions & RawMouseActions.AbsoluteMove) == 0) 1358actions |= RawMouseActions.AbsoluteMove; 1369if ((actions & RawMouseActions.AbsoluteMove) != 0) 1388if((actions & (RawMouseActions.AbsoluteMove | RawMouseActions.Activate)) != 0)