Game Development Community

Setting the Cursor to invisible while leaving the cursor enabled

by Matthew "Ashteth" Kee · in Torque Game Builder · 07/13/2005 (10:03 pm) · 2 replies

I wish to hide the mouse cursor while leaving mouse events enabled. I tried adding noCursor = "1" to the GUI profile, but this seems to disable the cursor events.

What I want is to be able to use a T2D sprite as a cursor while making the Torque GUI cursor invisible. I'm not using Torque GUIs, so the cursor not displaying above Torque GUIs is not a problem. How do I set the T2D cursor to invisible while leaving mouse events intact?

#1
07/14/2005 (12:21 am)
Seek and ye shall find :)

http://www.garagegames.com/mg/forums/result.thread.php?qt=28399
#2
07/14/2005 (6:59 am)
Quote:Seek and ye shall find :)
Yes and no... I actually had seen that, but thanks for trying.

What I ended up doing was creating a full alpha 16x16 bitmap and using that as the GUI cursor bitmap. This is a hack, but it allows the mouse messages to be broadcast (which turning the cursor off disables). I then use a T2D animated sprite as the cursor by placing it with the onMouseMove() function.