Exemple #1
0
        // forward click event to the game view controller
        public override void MouseDown(NSEvent theEvent)
        {
            ClickLocation = ConvertPointFromView(theEvent.LocationInWindow, null);

            GameViewController.GestureDidBegin();

            if (theEvent.ClickCount == 2)
            {
                GameViewController.HandleDoubleTap(ClickLocation);
            }
            else
            {
                if (theEvent.ModifierFlags != NSEventModifierMask.AlternateKeyMask)
                {
                    GameViewController.HandleTap(ClickLocation);
                }
            }

            base.MouseDown(theEvent);
        }