Get the mouse coordinates.

Get the mouse coordinates.

GetCursorPos

See version :

Pas de dépendances

Download :

#include <windows.h>
#include <stdio.h>

int main(void)
{
    POINT pt;
    while(1)
    {
        GetCursorPos(&pt);
        printf("X = %d\tY = %d          \r", pt.x, pt.y);
        Sleep(1);
    }
    return 0;
}




Explanations

	No explanations yet.