Game Development Community

Joystick/Gamepad with Torque3D

by Houssen · in General Discussion · 06/19/2012 (7:46 am) · 1 replies

Hi all, I have recently been trying to hook up a gamepad (Logitech 310) to my computer and get it working with T3D but I am having no luck. I can use it with the default bindings (left stick moves, right stick moves camera, a jumps) but I want to change the bindings to the way which will best fit my game of course.

So my question is, what are the binding commands for the joysticks/gamepads? I know that the a button is btn_a so I would do something like this:

movemap.bindCmd(gamepad, btn_a, "echo(A button);", "");

but that doesn't seem to work. Basically I would like to know what the buttons are for the gamepad as well as how do I get them to work? I have tried looking through a the forums but only found things for TGE and TGB.

Thanks.