Exemplo n.º 1
0
        private bool OnMouseEvent(MouseEventID id, Point position)
        {
            if (!Settings.Enable || !GameController.Window.IsForeground())
            {
                return(false);
            }

            Vector2 mousePosition = GameController.Window.ScreenToClient(position.X, position.Y);

            return(root.OnMouseEvent(id, mousePosition));
        }
Exemplo n.º 2
0
        private bool OnMouseEvent(MouseEventID id, Point position)
        {
            if (!Settings.Enable || !(Settings.AreoMode? GameController.Window.IsForeground() : WinApi.IsForegroundWindow(handleHud)))
            {
                return(false);
            }

            Vector2 mousePosition = Settings.AreoMode ? GameController.Window.ScreenToClient(position.X, position.Y) : ScreenToHud(position.X, position.Y);

            return(root.OnMouseEvent(id, mousePosition));
        }