Game Development Community

Windows White 360 Controller Support for TGB

by Devin Passage · in Hardware Issues · 05/21/2007 (7:48 pm) · 2 replies

Does or doesnt TGB support this? ive added this line of code to my ship control script but it doesnt work:

moveMap.bindCmd(joystick0, "button0", "$pFighter.FireForward();", "");

Everything compiles and works fine, the game just does not get the button press event. If TGB supports this and it works, we will buy it and use it. if it doesnt, we will use another product.

thanks.

#1
08/16/2008 (8:47 pm)
Did you install the drivers for the controller? i'm relatively sure that torque works with all game controllers, and the 360 controller works with any game that uses any gamepad. with the drivers it's no different than a normal PC gamepad, like logitech.
#2
04/05/2009 (7:23 pm)
I'm sure that you've probably solved the problem by now, but I stumbled across this as I was looking into things. I just got my XBox 360 Controller for Windows to work. Here is what I used to get the left analog, right analog and button controls to respond (for anyone else that might be having the same problem):

//Bind left analog stick functions
moveMap.bind(joystick0, "xaxis", moveLeftAnalogX);
moveMap.bind(joystick0, "yaxis", moveLeftAnalogY);
//Bind right analog stick functions
moveMap.bind(joystick0, "rxaxis", moveRightAnalogX);
moveMap.bind(joystick0, "ryaxis", moveRightAnalogY);
//Bind button zero
moveMap.bind(joystick0, "button0", button0Press);