joystick + python, not work

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
>>> import pygame
>>> pygame.joystick.init()
>>> pygame.joystick.get_count()
1
>>> js = pygame.joystick.Joystick(0)
>>> js
<Joystick object at 0x7facee1181b0>
>>> 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
>>>