Game Development Community

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. :)

#1
03/30/2007 (8:32 am)
Btn_a is the XBox controller reference to Torque's button0.

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.
#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
03/30/2007 (8:48 am)
@Michael Perry: Sorry but I am new to TGE :), so maybe some question could be so nonsense or stupid
I have look into actionMap.cc and understand a little :)
#4
03/30/2007 (8:55 am)
@Michael Perry: Sorry but I am new to TGE :), so maybe some question could be so nonsense or stupid
I have look into actionMap.cc and understand a little :)