Game Development Community

Using a Mouse

by Robert Schmidt · in Torque X 2D · 04/20/2008 (11:48 am) · 3 replies

Does anyone have sample code showing how to use the mouse. I have been looking through the documentation and tutorials and haven't found anything. I'd like to use the mouse to navigate game menus as well as control the camera and player interaction in a 3d world as is done in Oblivion.

Any help you could provide would be greatly appreciated.

#1
04/21/2008 (9:00 am)
Hey Robert! I haven't messed with Torque X much lately, but blow through the public Torque X forums and search each page for the word 'mouse' and you'll come across a few posts about it. Here's one I found that looks to be pretty useful:

http://www.garagegames.com/mg/forums/result.thread.php?qt=70642


The actual forum search feature leaves a bit to be desired, so you might not have had any luck searching for mouse usage examples on that.
#2
04/21/2008 (9:36 am)
Thanks Mario, the reason I didn't see the post is because, for some reason, I can only see a few posts when I go to any of the Torque X forums. When I followed your link I could see all of them. Strange. For a while there it looked like only a couple of people were using Torque X.
#3
04/21/2008 (9:58 am)
Heh. Also, when I said "blow through the forums" I meant go to each page and just doa search on the subjects for 'mouse'.

Yeah, regarding that wierd issue, I've had it too, seemed like it said I had 'read them all' or some sort of flag was set like I didn't need to see the other posts. Well, all said, glad I could help!

-Mario