Originally posted by MikeC:
This is fine for fullscreen, but I’d be very wary of locking the mouse to the centre if you’re ever going to be running in a window!
umm not if you do ShowCursor(FALSE);
btw, first I tried to set the mouse to the center of the screen that didn’t work…
then I tried the following:
if ((mx<0.1Fwindw) | | (my<0.1Fwindh) | | (mx>(windw-0.1Fwindw)) | | (my>(windh-0.1Fwindh)))
but this didn’t work too well, because if you move the mouse fast enough (in window mode)… the mouse would get out of the window!!!
then I added these lines to my CreateWindow code:
and this line to my Killwindow code: