Game Development Community

Mouse position

by Howard Dortch · in Torque Game Engine Advanced · 03/16/2007 (5:50 pm) · 3 replies

When I run the game the mouse moves to the upper left corner. I use Canvas.setCursorPos("512 384") and it moves to the upper left corner. When the user gets to the main menu in the game I would like to have the mouse pointer in the center. DX mouse not using the same controls?

#1
03/17/2007 (4:55 am)
It seems like the mouse is being reset by a hard coded value in the engine? I saw this problem before as well but I haven't looked into it.
#2
03/17/2007 (9:49 am)
Changed the input to the funciton to Canvas.setCursorPos(512,384) and sort of works. This was a problem in TGE 1.4 that got fixed but not sure it ported to TGEA.
I can set the mouse position but soon as I move the mouse it pops to the upper left corner. Should get go in the bugs forum?
#3
03/30/2007 (9:51 am)
Bump.
Any way to kill the mouse during startup and splash screens?
I use the Canvas.hideCursor() and I get a red rectangle that expands with mouse positon.

If I dont hide it no matter what I set the mouse to soon as I move it the arrow pops to upper left corner.