Code:

on_anykey=setMouse;
function setMouse{
mouse_mode=1-mouse_mode;
while(key_any){wait(1);}
}



// to keep the mousepointer within the games window (no cursor visible outside) you need a dll-function that supports the win32 api ClipCursor()

Last edited by mercuryus; 07/05/07 11:16.