Exemplo n.º 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);
        }
Exemplo n.º 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)
 {
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }