Mouse Cursor
by John Eckhardt · in Torque Game Engine · 09/30/2006 (12:22 pm) · 2 replies
So I just got this engine to work on a game that is almost completely mouse based. I've learned quite a bit so far, but this is what eludes me at the moment.
How can I display a mouse cursor ingame? I've thought that maybe the cursor is invisible, but my mouseEnter events aren't working.
Any help will be appreciated.
How can I display a mouse cursor ingame? I've thought that maybe the cursor is invisible, but my mouseEnter events aren't working.
Any help will be appreciated.
#2
Regarding you're issue on mouse events. I'm assuming that you're using the playGui.gui file. If you're capturing events for the GUI elements (2D), mouse events should work fine. But, if you're referring to the 3D scene that you're camera is focused on, and the objects within that view, it would require you to reprogram the engine in C++. Search the resource entitled 'Object Selection in Torque' for reference.
10/18/2006 (8:30 pm)
If you're currently set as FPS game, you might as well call mouseUnlock(); so the mouse wouldn't be lock at the middle crosshair. I think unlocking will also make your cursor appear.Regarding you're issue on mouse events. I'm assuming that you're using the playGui.gui file. If you're capturing events for the GUI elements (2D), mouse events should work fine. But, if you're referring to the 3D scene that you're camera is focused on, and the objects within that view, it would require you to reprogram the engine in C++. Search the resource entitled 'Object Selection in Torque' for reference.
Torque 3D Owner Drew Parker
and
Check out
common\client\cursor.cs