diligentcircle
Well-Known Member
I can't find documentation on this, and neither experimentation nor an input test script I found made in Python have led me to an answer.
I know that the nubs are mapped, when set as joysticks, as joysticks 1 and 2, using axes 0 and 1 for X and Y, respectively. What I can't figure out are the buttons. An input tester script I found seemed to report that these are all on joystick 0, with the d-pad recorded as axis 0 and 1 (though I couldn't figure out which button was which), but when I tried to grab these controls for a game I'm working on, I had no response. I'm pretty sure it's not my program (which is a Python script using Pygame, by the way), because the Pandora's nubs (as axes, when set to the proper mode) were recognized just fine.
Is there something I'm missing? Is there maybe something I need to do to cause the buttons to be read as joystick buttons instead of keys?
And of course, what joystick and button number are each of the buttons?
I know that the nubs are mapped, when set as joysticks, as joysticks 1 and 2, using axes 0 and 1 for X and Y, respectively. What I can't figure out are the buttons. An input tester script I found seemed to report that these are all on joystick 0, with the d-pad recorded as axis 0 and 1 (though I couldn't figure out which button was which), but when I tried to grab these controls for a game I'm working on, I had no response. I'm pretty sure it's not my program (which is a Python script using Pygame, by the way), because the Pandora's nubs (as axes, when set to the proper mode) were recognized just fine.
Is there something I'm missing? Is there maybe something I need to do to cause the buttons to be read as joystick buttons instead of keys?
And of course, what joystick and button number are each of the buttons?