1.7.2 getMousePosition() failure
by Vern Jensen · in Torque Game Builder · 08/27/2008 (2:58 pm) · 3 replies
If I call getMousePosition() at program start-up or right after changing from full-screen to windowed mode, it returns incorrect values. Just try doing this at program startup after everything is loaded:
As soon as you move the mouse, it'll return the correct value from that point on, until you switch between full/screen and windowed, in which case the value is again incorrect until the cursor is moved.
I believe this is a bug that's been here since 1.3.
-Vern
echo(sceneWindow2D.getMousePosition() );
As soon as you move the mouse, it'll return the correct value from that point on, until you switch between full/screen and windowed, in which case the value is again incorrect until the cursor is moved.
I believe this is a bug that's been here since 1.3.
-Vern
Torque Owner Vern Jensen