Esempio n. 1
0
        public virtual void PointerDown(Vector2 position, PointerType pointerType, GameTime gameTime)
        {
            bool res = UIWindowManager.PointerDown(position, pointerType, gameTime);

            if (res == false)
            {
                // Event was not handled by UI
                if (MouseCursor != null)
                {
                    mouseCursorWasVisible = MouseCursor.IsVisible;
                    MouseCursor.IsVisible = false;
                }
                isMouseCaptured = true;

                lastMousePos = position;

                res = CurrentController?.PointerDown(position, pointerType) ?? false;
                if (res == false)
                {
                    CurrentCamera?.PointerDown(position, pointerType);
                }
            }
        }
Esempio n. 2
0
 internal override void PointerDown(Microsoft.Xna.Framework.Vector2 position, PointerType pointerType)
 {
     UIWindowManager.PointerDown(position, pointerType);
 }