How to get mouse cursor in c language?
C Language
Mouse Cursor code
**********************
add header
>> #include <stdio.h>
>> #include <windows.h>
**********************
add header
>> #include <stdio.h>
>> #include <windows.h>
int main(void) { while(1) { POINT po; int x, y; GetCursorPos(&po); printf("x: %d, y: %d", po.x, po,y); printf("\r"); } } |