Game Development Community

Lock mouse don't work????

by Michael S · in Torque Game Builder · 10/26/2006 (7:48 am) · 4 replies

Hi
i want to ask
how to lock mouse in my window game?
i use lockmouse / setlockmouse
but it didn't work
here is my script

function startGame(%level)
{exec("./beelevel.cs");
Canvas.setContent(mainscreenGui);


Canvas.setCursor(DefaultCursor);
$wind=scenewindow2d;
Canvas.hideCursor();
moveMap.push();
sceneWindow2D.setUseObjectMouseEvents( true );


if( isFile( %level ) || isFile( %level @ ".dso"))
sceneWindow2D.loadLevel(%level);
scenewindow2d.setviewlimiton(-100,-105,220,165);

scenewindow2d.mount(mybee,0,0,0,true);

$wind.setlockMouse(true); ==> i tried this
lockMouse(true); ===> and tried this but it don't work all
}

could it be i must install TGE? because i only have TGB
thanks

Thread is locked
#1
10/26/2006 (8:14 am)
You seem to have a terrible problem with cross posting. I've answered this question in one of your other threads on the same topic. You just had another recent thread posted in at least three different places too. Since the "unread forum posts" link at the top of the screen displays all forum areas at the same time, cross-positing doesn't really increase your chances of getting an answer, it decreases them because many people will not answer cross-posted threads. Just something to keep in mind.
#2
10/26/2006 (8:40 am)
Jesus - I have wanted to say that so badly Ben, but I can't seem to work it as nice as you.

Michael - stop, for the love of all, just stop.
#3
10/26/2006 (10:39 pm)
Ooh sorry
i just don't know where this thread must go ? on general discussion or getting started
sorry
#4
11/03/2006 (10:17 pm)
Your post here and here is sufficient :)