Hi,
To test whether joystick button 1 is down use the following code:
Code:
buttons = sid.buttons()
if buttons & 1:
print 'button 1 is down'
Accessing joystick information is somewhat cryptic right now, in the next version we will make it a lot easier to use.