Exemple #1
0
        void MouseUpInternal(NSEvent a, Uno.Platform.MouseButton button)
        {
            _modifierFlags = a.ModifierFlags;

            var pos = GetPosition(a);

            _log.Try(() => Bootstrapper.OnMouseUp(_unoWindow, (int)pos.X, (int)pos.Y, button), false);
        }
Exemple #2
0
        public override void MouseDown(NSEvent theEvent)
        {
            MouseButton b;

            if (MonoMacEnums.TryGetUnoMouseButton(theEvent.ButtonNumber, out b))
            {
                PressedMouseButtons |= 1U << (int)b;
                var p = Remap(theEvent.LocationInWindow);
                _lastX      = p.X;
                _lastY      = p.Y;
                _lastButton = b;
                _hasDown    = true;
                Bootstrapper.OnMouseDown(_unoWindow, p.X, p.Y, b);
            }
            else
            {
                Debug.Log("Unsupported mouse button: " + theEvent.ButtonNumber, DebugMessageType.Error);
            }
        }
Exemple #3
0
 public override bool GetMouseButtonState(Uno.Platform.MouseButton button)
 {
     return((_view.PressedMouseButtons & (1 << (int)button)) != 0);
 }
Exemple #4
0
 public override bool GetMouseButtonState(Uno.Platform.MouseButton button)
 {
     // TODO: Implement this.
     return(false);
 }