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.
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.
About the author
www.martianarctic.com
#2
//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);
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);
Torque Owner Shaolin Dave
AwesomeSauce Games, L.L.C.