示例#1
0
        public override void Move(int x, int y)
        {
            Vector2 size = WindowHandle.Size();

            WinAPI.POINT p = new WinAPI.POINT();
            p.x = x;
            p.y = y;

            osu.OsuOptions.Convert(ref p, size.x, size.y);

            Vector2 converted = WindowHandle.ConvertToScreen(new Vector2(p.x, p.y));

            p.x = converted.x;
            p.y = converted.y;
            WinAPI.SetCursorPos(p.x, p.y);
        }