>>> import pygame >>> pygame.joystick.init() >>> pygame.joystick.get_count() 1 >>> js = pygame.joystick.Joystick(0) >>> js >>> js.init() >>> js.get_numbuttons() 12 >>> for i in range(12): ... js.get_button(i) ... 0 0 0 0 0 0 0 0 0 0 0 0 >>>