Editor, mouselook while pressing RMB: where?
by Novack · in Torque 3D Professional · 02/15/2010 (8:14 pm) · 1 replies
From within the World Editor, if the Right Mouse Button (button1) is pressed, the player camera gets controlled as usually is while in-game.
My problem is, I cant find the place where this is handled!
In FPS Example\game\tools\worldEditor\scripts\editor.bind.ed.cs there is editorYaw and editorPitch, basically with the same code as normal movement defined in default.binds, but no signs of the expected (mouse, button1, something) bind.
In the source, I couldnt find any refereces to this, in the 3dMouse events of the editor classes.
Somebody knows how in the world this is achieved? I want to change the button1 to something else, but cant find where this is done.
My problem is, I cant find the place where this is handled!
In FPS Example\game\tools\worldEditor\scripts\editor.bind.ed.cs there is editorYaw and editorPitch, basically with the same code as normal movement defined in default.binds, but no signs of the expected (mouse, button1, something) bind.
In the source, I couldnt find any refereces to this, in the 3dMouse events of the editor classes.
Somebody knows how in the world this is achieved? I want to change the button1 to something else, but cant find where this is done.
About the author
http://cyberiansoftware.com.ar/
Torque 3D Owner Novack
CyberianSoftware
The magic is done at Engine/source/gui/worldEditor/editTSCtrl.cpp, around the line 510, in the function