Example #1
0
 public RawKeyEventArgs(KeyboardDevice device, RawKeyEventType type, Key key, string text)
     : base(device)
 {
     this.Key  = key;
     this.Type = type;
     this.Text = text;
 }
Example #2
0
            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)));
            }
Example #3
0
 public RawKeyEventArgs(
     IKeyboardDevice device,
     uint timestamp,
     RawKeyEventType type,
     Key key, ModifierKeys modifiers)
     : base(device, timestamp)
 {
     Key = key;
     Type = type;
     Modifiers = modifiers;
 }
Example #4
0
 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;
 }
Example #6
0
 public RawKeyEventArgs(
     IKeyboardDevice device, 
     uint timestamp,
     RawKeyEventType type, 
     Key key, 
     string text)
     : base(device, timestamp)
 {
     this.Key = key;
     this.Type = type;
     this.Text = text;
 }
Example #7
0
 public RawKeyEventArgs(KeyboardDevice device, RawKeyEventType type, Key key)
     : base(device, Environment.TickCount)
 {
     this.Key  = key;
     this.Type = type;
 }
Example #8
0
        private void HandleKey(Key key, RawKeyEventType type)
        {
            var rawKeyEvent = new RawKeyEventArgs(KeyboardDevice.Instance, (uint)DateTime.Now.Ticks, type, key, InputModifiers.None);

            _view.Input(rawKeyEvent);
        }
Example #9
0
 public RawKeyEventArgs(KeyboardDevice device, RawKeyEventType type, Key key)
     : base(device, Environment.TickCount)
 {
     this.Key = key;
     this.Type = type;
 }