Game Development Community

Constraining / locking the mouse inside window?

by Adios, Man! · in Torque Game Engine · 08/21/2006 (3:42 pm) · 1 replies

Is there a way to lock the mouse cursor inside the window? In SDL, this is done with the SDL_WM_GrabInput function, but I'm not sure what the equivalent function in torque would be.

Any help would be greatly appreciated!

#1
08/23/2006 (8:28 am)
Heh. Right at the top of game/main.cc :

lockMouse.

Hoorray!