Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coldstart01 opened this issue Jun 22, 2021 · 0 comments
Open

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

coldstart01 opened this issue Jun 22, 2021 · 0 comments

Comments

@coldstart01
Copy link

`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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant