Dovyski / cvui

A (very) simple UI lib built on top of OpenCV drawing primitives
https://dovyski.github.io/cvui/
MIT License
832 stars 213 forks source link

cursor.x and cursor.y not updating in loop #108

Open coldstart01 opened 3 years ago

coldstart01 commented 3 years ago

`while (1) { std::cout << "get cursor" << std::endl;

                    cv::Point mouse(const cv::String& theWindowName = WINDOW1_NAME);
                    cv::Point cursor = cvui::mouse();
                    std::cout << "x: " << cursor.x << " y: " << cursor.y << std::endl;
                }`

Why doesn't the cursor.x & cursor.y update? It just shows the same one value.