]> CRI, Mines Paris - PSL - minwii.git/blobdiff - src/pywiiuse/pygame_wiimouse.py
Ajout du contrôle du gain à la télécommande.
[minwii.git] / src / pywiiuse / pygame_wiimouse.py
index e5d506cc9c4415cdd0b8cb545312c5de8f14d55b..3328eff1e644199eda6e5eeb0fd7a6c78276746f 100755 (executable)
@@ -169,7 +169,7 @@ def _full_mouse_event_cb(self, id, wmp):
         if button :
             event = pygame.event.Event(pygame.MOUSEBUTTONUP,
                                        pos = pos,
-                                       button = 1)
+                                       button = button)
             pygame.event.post(event)