Hey all! Has anyone tried handling input from a Xbox360 controller in python? The analog sticks and triggers seem pretty straightforward, but I haven't been able to figure out how to get button presses (face buttons, shoulders, etc).
Using the excellent Python Shell by Silent Cacophony I was able to locate the Xbox360Controller.ButtonState and XboxController360.IsButtonDown functions, but they both take a second mystery parameter that I'm unable to figure out (the first parameter, of course, being the controller index (non-zero based, incidentally)).
All these return false:
Xbox360Controller.ButtonState(controllerIndex, "B")
Xbox360Controller.ButtonState(controllerIndex, "Button B")
Xbox360Controller.ButtonState(controllerIndex, "Button_B")
Has anyone had any success with either of these functions, or can someone point me to some documentation for the Xbox360Controller plugin?
Thanks!