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?
#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
Here's a post from an XBox Linux site which has the button names.
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?
Associate David Montgomery-Blake
David MontgomeryBlake
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.