Another question with GamePad
by Marty Keese · in Torque Game Engine · 03/30/2007 (8:25 am) · 4 replies
I have do a search and find a lot of threads, documents about gamepad
for example
http://tdn.garagegames.com/wiki/GettingTorqueConsoleReady
So, the problem is which kind of GamePad I should buy to make it ready with Torque. The gamepad I tend to use here is just PC game pad plugged in USB port. The gamepad should be compatible with Torque also flexible enogh
And then, how could I know the name of GamePad button to start binding
The code in TDN is
GlobalActionMap.bindCmd( gamepad, btn_a, "echo(make);", "echo(break);" );
So, there are a btn_a on example gamepad, but how could I know it in my gamepad
Thanks for any helps. :)
for example
http://tdn.garagegames.com/wiki/GettingTorqueConsoleReady
So, the problem is which kind of GamePad I should buy to make it ready with Torque. The gamepad I tend to use here is just PC game pad plugged in USB port. The gamepad should be compatible with Torque also flexible enogh
And then, how could I know the name of GamePad button to start binding
The code in TDN is
GlobalActionMap.bindCmd( gamepad, btn_a, "echo(make);", "echo(break);" );
So, there are a btn_a on example gamepad, but how could I know it in my gamepad
Thanks for any helps. :)
#2
03/30/2007 (8:35 am)
So, I have had a PS2 gamepad right now, where could I find the binding list so I could make a simple test :)
#3
I have look into actionMap.cc and understand a little :)
03/30/2007 (8:48 am)
@Michael Perry: Sorry but I am new to TGE :), so maybe some question could be so nonsense or stupidI have look into actionMap.cc and understand a little :)
#4
I have look into actionMap.cc and understand a little :)
03/30/2007 (8:55 am)
@Michael Perry: Sorry but I am new to TGE :), so maybe some question could be so nonsense or stupidI have look into actionMap.cc and understand a little :)
Employee Michael Perry
ZombieShortbus
All of the button references are in the engine code, engine\sim\actionMap.cc.
I'd recommend using a known game pad, PS2, Xbox, Xbox 360, and Wii. Then connect using the appropriate adapter.
*EDIT*-Xbox and 360 are what I've worked with and mapped, and determining what button a is in reference to an XBOX controller is a no-brainer.