Ok, so how do I detect mouse coordinates in a
particular window?
detect mouse coordinates give general screen coordinates of the entire screen:
1 2 3 4 5 6 7
|
POINT p;
if (GetCursorPos(&p))
{
std::cout << p.x << "," << p.y << std::endl;
//cursor position now in p.x and p.y
}
|
Thanks in advance
Last edited on