Game Development Community

Game pads

by Nathan · in General Discussion · 02/14/2006 (8:18 am) · 6 replies

Hi I need some help with my xbox gamepad. How can I map buttons on the controller to do other things? Like how would I make button A make the player jump?

#1
02/14/2006 (9:00 am)
Most of the posts about getting the XBox 360 controller to work on TGE are hidden in the private forums and on TDN.

Basically, you have to initialize gamepad support and then add the actionmaps for the controller. Then you have to tweak to make it work "right" for the game. These tweaks are often source specific.
#2
02/14/2006 (9:45 am)
Well... I'm actually using a regular xbox controller. I have the controller working now but I don't know what the buttons are called. Like "movemap.bind(joystick0, "ButtonA",jump);" doesn't work.
#3
02/14/2006 (1:09 pm)
Try btn_a.

Here's a post from an XBox Linux site which has the button names.
#4
02/14/2006 (4:03 pm)
Btn_a doesn't seem to work either.
#5
02/14/2006 (4:43 pm)
Button10 is the left trigger on the xbox controller but I can't figure out any of the other buttons?!
#6
02/14/2006 (5:21 pm)
Does anybody know what the buttons are called?