[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] No data from joystick



pygame.joystick correctly detects my joystick, reads its name, number
of axies, buttons and hats.  But all data relating to the position of
these controls is 0.

  joystick.init()
  print joystick.get_name()
      -> "Logitech Extreme 3D Pro USB"
  print joystick.get_numaxes()
      -> 4
  print joystick.get_axis(0)
      -> 0.0
  print joystick.get_numbuttons()
      -> 4
  print joystick.get_button(0)
      -> 0
  print joystick.get_numhats()
      -> 1
  print joystick.get_hat(0)
      -> (0, 0)

The Windows XP game controller window correctly shows control data.

Any ideas why pygame doesn't see any data?

-- 
Neil Fraser, Programmer & Wizard
http://neil.fraser.name