Game Development Community

Using the mouse to move the crosshair, but not the camera

by Bart van Greevenbroek · in Torque 3D Beginner · 03/19/2014 (6:40 am) · 1 replies

So, for my project using the Oculus Rift (working on the Oculus Rift Template) I would like to have the mouse control the crosshair on my screen, but NOT the camera. The camera control should be exlusively done with the head tracking.

Where can I change the behavior of the mouse events, and what item in the gui editor do i need? Currently, it seems that if i use a GuiBitmapCtrl or a reticle, I always end up with all of those GUI elements being set to the middle of the screen (once I run using F11) What script is doing that? In other words, where can I turn off that behavior?

Any help would be greatly appreciated.

#1
03/19/2014 (7:51 am)
That behavior is handled by art/gui/playGui.gui - there is a GuiCrossHairHud object named "Reticle" in that file.

All input behavior is mapped in scripts/client/default.bind.cs - if a scripts/client/config.cs is present, delete it or changes to default.bind.cs won't take effect.