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); }
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) { }
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); }
// 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); }
// 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); }
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)); }
// 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)); }
// 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)); }