예제 #1
0
        public static VirtualKeyModifiers ToVirtualKeyModifiers(this MetaKeyStates nativeKeys)
        {
            var keys = VirtualKeyModifiers.None;

            if ((nativeKeys & MetaKeyStates.ShiftMask) != 0)
            {
                keys |= VirtualKeyModifiers.Shift;
            }
            if ((nativeKeys & MetaKeyStates.CtrlMask) != 0)
            {
                keys |= VirtualKeyModifiers.Control;
            }
            if ((nativeKeys & MetaKeyStates.MetaMask) != 0)
            {
                keys |= VirtualKeyModifiers.Windows;
            }

            return(keys);
        }
예제 #2
0
 public override bool ClearMetaKeyStates(MetaKeyStates states) => _editableInputConnection?.ClearMetaKeyStates(states) ?? false;
 public ScanBarEvent(long downTime, long eventTime, KeyEventActions action, Keycode code, int repeat, MetaKeyStates metaState, int deviceId, int scancode, KeyEventFlags flags, InputSourceType source) : base(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, flags, source)
 {
 }
 public ScanBarEvent(long downTime, long eventTime, KeyEventActions action, Keycode code, int repeat, MetaKeyStates metaState, int deviceId, int scancode) : base(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode)
 {
 }
예제 #5
0
 public static MotionEvent Obtain(long downTime, long eventTime, int action, int pointers, int[] pointerIds, MotionEvent.PointerCoords[] pointerCoords, MetaKeyStates metaState, float xPrecision, float yPrecision, int deviceId, Edge edgeFlags, int source, int flags)
 {
     return Obtain (downTime, eventTime, (MotionEventActions) action, pointers, pointerIds, pointerCoords, metaState, xPrecision, yPrecision, deviceId, edgeFlags, (InputSourceType) source, (MotionEventFlags) flags);
 }
예제 #6
0
 // API 4
 public static MotionEvent Obtain(long downTime, long eventTime, int action, float x, float y, float pressure, float size, MetaKeyStates metaState, float xPrecision, float yPrecision, int deviceId, Edge edgeFlags)
 {
     return Obtain (downTime, eventTime, (MotionEventActions) action, x, y, pressure, size, metaState, xPrecision, yPrecision, deviceId, edgeFlags);
 }
예제 #7
0
 // API 4
 public static MotionEvent Obtain(long downTime, long eventTime, int action, float x, float y, MetaKeyStates metaState)
 {
     return Obtain (downTime, eventTime, (MotionEventActions) action, x, y, metaState);
 }
예제 #8
0
 public static MotionEvent Obtain(long downTime, long eventTime, int action, int pointers, int[] pointerIds, MotionEvent.PointerCoords[] pointerCoords, MetaKeyStates metaState, float xPrecision, float yPrecision, int deviceId, Edge edgeFlags, int source, int flags)
 {
     return(Obtain(downTime, eventTime, (MotionEventActions)action, pointers, pointerIds, pointerCoords, metaState, xPrecision, yPrecision, deviceId, edgeFlags, (InputSourceType)source, (MotionEventFlags)flags));
 }
예제 #9
0
 // API 4
 public static MotionEvent Obtain(long downTime, long eventTime, int action, float x, float y, float pressure, float size, MetaKeyStates metaState, float xPrecision, float yPrecision, int deviceId, Edge edgeFlags)
 {
     return(Obtain(downTime, eventTime, (MotionEventActions)action, x, y, pressure, size, metaState, xPrecision, yPrecision, deviceId, edgeFlags));
 }
예제 #10
0
 // API 4
 public static MotionEvent Obtain(long downTime, long eventTime, int action, float x, float y, MetaKeyStates metaState)
 {
     return(Obtain(downTime, eventTime, (MotionEventActions)action, x, y, metaState));
 }