Game Development Community

In game cursor suggestions

by Cameron Altenhof-Long · in Torque Game Engine · 11/06/2001 (1:06 pm) · 2 replies

I am interested in having a visible cursor on the screen that can be used for picking, etc, but have run into some difficulty with this since the current "cursorOn()"
behavior routes all button clicks to the Canvas.

There are obviously many different approaches that can be taken to alter this behavior, but I was wondering if anyone has suggestions on the most straightforward way to accomplish this within the existing Torque codebase.

#1
11/06/2001 (2:59 pm)
Why not use the global action map?
It is allowed to process events before the GUI.
#2
11/06/2001 (4:05 pm)
After further review I discovered that my "canvas" mouse events were actually being captured by the guiShapeNameHud object created in the playGui.gui script.

Once this element is removed, mouse events are passed to the base GameTSCtrl object and can easily be handled at that point.