Skip to content

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

@coldstart01

Description

@coldstart01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions