Restrict the mouse into a given area.

Restrict the mouse into a given area.

ClipCursor

See version :

Pas de dépendances

Download :

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

int main(void)
{
    RECT R;
    R.left = 100;
    R.right = 200;
    R.top = 100;
    R.bottom = 200;
    ClipCursor(&R);
    getchar();
    ClipCursor(NULL);
    return 0;
}




Explanations

	No explanations yet.