1 instantiation of RawMouseActions
PresentationCore (1)
System\Windows\Input\MouseDevice.cs (1)
2032RawMouseActions actions = new RawMouseActions();
219 references to RawMouseActions
PresentationCore (219)
System\Windows\Input\MouseDevice.cs (81)
893RawMouseActions.AbsoluteMove, 1161if ((rawMouseInputReport.Actions & RawMouseActions.Activate) == RawMouseActions.Activate) 1167if ((rawMouseInputReport.Actions & ~RawMouseActions.Activate) != 0) 1176rawMouseInputReport.Actions & ~RawMouseActions.Activate, 1232if ((rawMouseInputReport.Actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 1247if ((rawMouseInputReport.Actions & RawMouseActions.AbsoluteMove) == RawMouseActions.AbsoluteMove) 1251if ((rawMouseInputReport.Actions & ~(RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor)) != 0) 1260rawMouseInputReport.Actions & ~(RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor), 1273rawMouseInputReport.Actions & (RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor), 1357RawMouseActions.Activate, 1389RawMouseActions actions = GetNonRedundantActions(e); 1390RawMouseActions originalActions = actions; 1398if ((rawMouseInputReport.Actions & RawMouseActions.Activate) == RawMouseActions.Activate) 1402actions |= RawMouseActions.Activate; 1440if ((rawMouseInputReport.Actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 1449if ((rawMouseInputReport.Actions & RawMouseActions.CancelCapture) == RawMouseActions.CancelCapture) 1458if ((rawMouseInputReport.Actions & RawMouseActions.AbsoluteMove) == RawMouseActions.AbsoluteMove) 1690actions |= RawMouseActions.AbsoluteMove; 1698actions |= RawMouseActions.QueryCursor; 1703if ((rawMouseInputReport.Actions & RawMouseActions.VerticalWheelRotate) == RawMouseActions.VerticalWheelRotate) 1707actions |= RawMouseActions.VerticalWheelRotate; 1714if ((rawMouseInputReport.Actions & RawMouseActions.QueryCursor) == RawMouseActions.QueryCursor) 1718actions |= RawMouseActions.QueryCursor; 1721ReadOnlySpan<RawMouseActions> ButtonPressActions = stackalloc RawMouseActions[5] 1723RawMouseActions.Button1Press, 1724RawMouseActions.Button2Press, 1725RawMouseActions.Button3Press, 1726RawMouseActions.Button4Press, 1727RawMouseActions.Button5Press 1730ReadOnlySpan<RawMouseActions> ButtonReleaseActions = stackalloc RawMouseActions[5] 1732RawMouseActions.Button1Release, 1733RawMouseActions.Button2Release, 1734RawMouseActions.Button3Release, 1735RawMouseActions.Button4Release, 1736RawMouseActions.Button5Release 1886RawMouseActions actions = GetNonRedundantActions(e); 1894if ((actions & RawMouseActions.Activate) == RawMouseActions.Activate) 1901if ((actions & RawMouseActions.VerticalWheelRotate) == RawMouseActions.VerticalWheelRotate) 1921if ((actions & RawMouseActions.Button1Press) == RawMouseActions.Button1Press) 1930if ((actions & RawMouseActions.Button1Release) == RawMouseActions.Button1Release) 1939if ((actions & RawMouseActions.Button2Press) == RawMouseActions.Button2Press) 1948if ((actions & RawMouseActions.Button2Release) == RawMouseActions.Button2Release) 1957if ((actions & RawMouseActions.Button3Press) == RawMouseActions.Button3Press) 1966if ((actions & RawMouseActions.Button3Release) == RawMouseActions.Button3Release) 1975if ((actions & RawMouseActions.Button4Press) == RawMouseActions.Button4Press) 1984if ((actions & RawMouseActions.Button4Release) == RawMouseActions.Button4Release) 1993if ((actions & RawMouseActions.Button5Press) == RawMouseActions.Button5Press) 2002if ((actions & RawMouseActions.Button5Release) == RawMouseActions.Button5Release) 2012if ((actions & RawMouseActions.AbsoluteMove) == RawMouseActions.AbsoluteMove) 2021if ((actions & RawMouseActions.QueryCursor) == RawMouseActions.QueryCursor) 2030private RawMouseActions GetNonRedundantActions(NotifyInputEventArgs e) 2032RawMouseActions actions = new RawMouseActions(); 2039actions = (RawMouseActions) o;
System\Windows\Input\RawMouseInputReport.cs (48)
49RawMouseActions actions, 56throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawMouseActions)); 69public RawMouseActions Actions {get {return _actions;}} 93internal static bool IsValidRawMouseActions(RawMouseActions actions) 95if (actions == RawMouseActions.None) 98if ((( RawMouseActions.AttributesChanged | RawMouseActions.Activate | RawMouseActions.Deactivate | 99RawMouseActions.RelativeMove | RawMouseActions.AbsoluteMove | RawMouseActions.VirtualDesktopMove | 100RawMouseActions.Button1Press | RawMouseActions.Button1Release | 101RawMouseActions.Button2Press | RawMouseActions.Button2Release | 102RawMouseActions.Button3Press | RawMouseActions.Button3Release | 103RawMouseActions.Button4Press | RawMouseActions.Button4Release | 104RawMouseActions.Button5Press | RawMouseActions.Button5Release | 105RawMouseActions.VerticalWheelRotate | RawMouseActions.HorizontalWheelRotate | 106RawMouseActions.CancelCapture | 107RawMouseActions.QueryCursor) & actions) == actions) 109if (!(((RawMouseActions.Deactivate & actions) == actions && RawMouseActions.Deactivate != actions ) || 110(((RawMouseActions.Button1Press | RawMouseActions.Button1Release) & actions) == (RawMouseActions.Button1Press | RawMouseActions.Button1Release)) || 111(((RawMouseActions.Button2Press | RawMouseActions.Button2Release) & actions) == (RawMouseActions.Button2Press | RawMouseActions.Button2Release)) || 112(((RawMouseActions.Button3Press | RawMouseActions.Button3Release) & actions) == (RawMouseActions.Button3Press | RawMouseActions.Button3Release)) || 113(((RawMouseActions.Button4Press | RawMouseActions.Button4Release) & actions) == (RawMouseActions.Button4Press | RawMouseActions.Button4Release)) || 114(((RawMouseActions.Button5Press | RawMouseActions.Button5Release) & actions) == (RawMouseActions.Button5Press | RawMouseActions.Button5Release)))) 122private RawMouseActions _actions;
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (4)
220if ((rawMouseInputReport.Actions & RawMouseActions.Activate) == RawMouseActions.Activate) 233case RawMouseActions.AbsoluteMove: 249case RawMouseActions.CancelCapture:
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
521if ((mouseInputReport.Actions & RawMouseActions.Deactivate) != RawMouseActions.Deactivate)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (42)
491RawMouseActions actions = mouseInputReport.Actions; 505if ((actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 553else if ((actions & RawMouseActions.CancelCapture) != 0) 575else if ((actions & RawMouseActions.Activate) != 0) 608RawMouseActions.Activate, // Only let activate happen. 627else if ((actions & (RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor | 628RawMouseActions.Button1Press | RawMouseActions.Button1Release | 629RawMouseActions.Button2Press | RawMouseActions.Button2Release)) != 0) 633if ((actions & RawMouseActions.Button1Press) != 0 && CurrentStylusDevice != null && 712if ((actions & (RawMouseActions.Button1Press | RawMouseActions.Button2Press)) == 0) 722if ((actions & RawMouseActions.Button1Press) != 0 && CurrentStylusDevice != null && 750if ((actions & (RawMouseActions.Button1Press | RawMouseActions.Button2Press)) == 0) 757else if ((actions & ~(RawMouseActions.AbsoluteMove | RawMouseActions.QueryCursor)) == 0) 824Debug.Assert((actions & ~(RawMouseActions.Button3Press | RawMouseActions.Button3Release | 825RawMouseActions.Button4Press | RawMouseActions.Button4Release | 826RawMouseActions.Button5Press | RawMouseActions.Button5Release | 827RawMouseActions.VerticalWheelRotate | 828RawMouseActions.HorizontalWheelRotate)) == 0); 1286RawMouseActions.Deactivate, 1733RawMouseActions actions = stylusDevice.GetMouseActionsFromStylusEventAndPlaybackCachedDown(stagingItem.Input.RoutedEvent, stylusArgs); 1735if (actions != RawMouseActions.None) 1753actions |= RawMouseActions.Activate; 1825if ((mouseInputReport.Actions & RawMouseActions.Deactivate) != RawMouseActions.Deactivate) 1956internal bool UpdateMouseButtonState(RawMouseActions actions) 1962case RawMouseActions.Button1Press: 1970case RawMouseActions.Button1Release: 1978case RawMouseActions.Button2Press: 1986case RawMouseActions.Button2Release: 2821RawMouseActions actions = RawMouseActions.AbsoluteMove; 2828actions |= RawMouseActions.Activate;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (11)
1671RawMouseActions actions = _fLeftButtonDownTrigger ? RawMouseActions.Button1Press : RawMouseActions.Button2Press; 1683actions |= RawMouseActions.Activate; 1733internal RawMouseActions GetMouseActionsFromStylusEventAndPlaybackCachedDown(RoutedEvent stylusEvent, StylusEventArgs stylusArgs) 1776return RawMouseActions.AbsoluteMove; 1793return RawMouseActions.AbsoluteMove; 1804RawMouseActions actions = _fLeftButtonDownTrigger ? 1805RawMouseActions.Button1Release : 1806RawMouseActions.Button2Release; 1819return RawMouseActions.None;
System\Windows\InterOp\HwndMouseInputProvider.cs (31)
168RawMouseActions.AbsoluteMove, 448RawMouseActions.AbsoluteMove, 477RawMouseActions.VerticalWheelRotate, 502RawMouseActions.Button1Press, 521RawMouseActions.Button1Release, 539RawMouseActions.Button2Press, 556RawMouseActions.Button2Release, 574RawMouseActions.Button3Press, 591RawMouseActions.Button3Release, 605RawMouseActions actions = 0; 608actions = RawMouseActions.Button4Press; 612actions = RawMouseActions.Button5Press; 633RawMouseActions actions = 0; 636actions = RawMouseActions.Button4Release; 640actions = RawMouseActions.Button5Release; 742RawMouseActions.CancelCapture, 983RawMouseActions.Deactivate, 1224RawMouseActions actions, 1245actions = RawMouseActions.Deactivate; 1253if((actions & RawMouseActions.Deactivate) == RawMouseActions.Deactivate) 1260else if((actions & RawMouseActions.CancelCapture) == RawMouseActions.CancelCapture) 1264else if(!_active && (actions & RawMouseActions.VerticalWheelRotate) == RawMouseActions.VerticalWheelRotate) 1333actions |= RawMouseActions.Activate; 1350if((actions & RawMouseActions.AbsoluteMove) == 0) 1354actions |= RawMouseActions.AbsoluteMove; 1365if ((actions & RawMouseActions.AbsoluteMove) != 0) 1384if((actions & (RawMouseActions.AbsoluteMove | RawMouseActions.Activate)) != 0)