Ejemplo n.º 1
0
        private IMouseEvent _toEvent(MouseEventArgs e, IMouseEvent.EventAction action)
        {
            long timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();

            if (e.GetType() == typeof(MouseEventExtArgs))
            {
                timestamp = ((MouseEventExtArgs)e).Timestamp;
            }

            var button = _toButton(e.Button);

            return(new MouseEventImpl()
            {
                Button = button,
                Action = action,
                Timestamp = timestamp,
                X = e.X,
                Y = e.Y
            });
        }
Ejemplo n.º 2
0
 private static void ExecuteMouseMoveCommand(MouseEventArgs args, bool ischecked)
 {
     Debug.WriteLine($"EventType:{args.GetType().Name}, IsChecked: {ischecked}");
 }