public RawKeyEventArgs(KeyboardDevice device, RawKeyEventType type, Key key, string text) : base(device) { this.Key = key; this.Type = type; this.Text = text; }
void KeyboardEvent(RawKeyEventType type, NSEvent ev) { var code = KeyTransform.TransformKeyCode(ev.KeyCode); if (!code.HasValue) { return; } _tl.OnInput(new RawKeyEventArgs(_keyboard, GetTimeStamp(ev), type, code.Value, GetModifiers(ev.ModifierFlags))); }
public RawKeyEventArgs( IKeyboardDevice device, uint timestamp, RawKeyEventType type, Key key, ModifierKeys modifiers) : base(device, timestamp) { Key = key; Type = type; Modifiers = modifiers; }
public RawKeyEventArgs( IKeyboardDevice device, uint timestamp, RawKeyEventType type, Key key, InputModifiers modifiers) : base(device, timestamp) { Key = key; Type = type; Modifiers = modifiers; }
public RawKeyEventArgs( IKeyboardDevice device, ulong timestamp, IInputRoot root, RawKeyEventType type, Key key, RawInputModifiers modifiers) : base(device, timestamp, root) { Key = key; Type = type; Modifiers = modifiers; }
public RawKeyEventArgs( IKeyboardDevice device, uint timestamp, RawKeyEventType type, Key key, string text) : base(device, timestamp) { this.Key = key; this.Type = type; this.Text = text; }
public RawKeyEventArgs(KeyboardDevice device, RawKeyEventType type, Key key) : base(device, Environment.TickCount) { this.Key = key; this.Type = type; }
private void HandleKey(Key key, RawKeyEventType type) { var rawKeyEvent = new RawKeyEventArgs(KeyboardDevice.Instance, (uint)DateTime.Now.Ticks, type, key, InputModifiers.None); _view.Input(rawKeyEvent); }