Game Development Community

Hiding the mouse cursor

by Jason Howard · in Torque Game Builder · 07/09/2006 (9:03 pm) · 7 replies

Does Canvas.hideCursor() not work anymore in the latest TGB release? Any tricks for hiding the mouse arrow, but still being able to read the mouse movements?

#1
07/10/2006 (3:49 am)
I also have this problem and it's not work
#2
07/10/2006 (10:19 am)
Call the hide in sceneWindow2D::onMouseMove.
#3
07/10/2006 (3:04 pm)
Thanks! calling Canvas.hideCursor() inside sceneWindow2D::onMouseMove hides the mouse cursor... with a minor performance hit due to calling that every time the mouse is moved...

Does anyone know how to change the cursor icon itself? Perhaps changing that to a "blank" picture would work, too...
#4
07/10/2006 (4:33 pm)
if(!isObject(CursorName)) new GuiCursor(CursorName)
{
   hotSpot = "1 1";
   bitmapName = "~/data/images/cursorImage";
};

Canvas.setCursor(CursorName);

:)
#6
07/31/2006 (2:35 am)
It's even easier to hide/show the cursor via 'hideCursor();' & 'showCursor();' commands as contained in the 'common/gameScripts/cursor.cs' file (No performance hit either as far as i know)

While i'm still looking, does any1 know how i would check for Left clicks to force the speed of a menu animation say?

Both sceneWindow2D::OnMouse method and testActionMap examples in input pdf don't seem to be working for me!? (Bear in mind, this is a menu system so i have yet to load a level (t2d) file
#7
07/31/2006 (7:27 am)
Here