View Single Post
  #2  
Old 02-02-2004, 09:46 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote