Пример #1
0
        public void PlatformUpdate()
        {
            POINT mouse = new POINT();

            WinUser.GetCursorPos(ref mouse);
            WinUser.ScreenToClient(Window.GetWindowClass().GetHWND(), ref mouse);

            Vector2 mousePos = new Vector2(mouse.x, mouse.y);

            if (mousePos != mousePosition)
            {
                // TPDP Put left
                eventCallback(new MouseMovedEvent(mousePos.x, mousePos.y, mouseButtons[0]));
                mousePosition = mousePos;
            }
        }