Locking cursor to the game window
by James Ford · in Torque Game Builder · 08/10/2008 (11:36 am) · 0 replies
Ok I know this has been asked before, I think I might have even answered this question before, but with these forums I will never ever find it...
Does TGB support "locking" the mouse/cursor to the game window, that is, you cannot mouse past the edge of the game window? I looked around and saw that t2dSceneWindow has setMouseLocked but that does not seem to be the same "locked" I mean. Also GuiControl has a C++ side lockMouse, but not exposed to script, and again, not sure if that's the same "lock". If so I can expose it, but maybe I'm missing something else?
Does TGB support "locking" the mouse/cursor to the game window, that is, you cannot mouse past the edge of the game window? I looked around and saw that t2dSceneWindow has setMouseLocked but that does not seem to be the same "locked" I mean. Also GuiControl has a C++ side lockMouse, but not exposed to script, and again, not sure if that's the same "lock". If so I can expose it, but maybe I'm missing something else?
About the author
http://jamesdev.info