]> CRI, Mines Paris - PSL - minwii.git/blobdiff - src/app/minwii.py
démarrage du support de plusieurs wiimotes.
[minwii.git] / src / app / minwii.py
index 1cf7daf50fb1e5dd1cc2265ae1de5a13247b173c..c609246faae21416b303bb371b12704c62be9e12 100755 (executable)
@@ -32,7 +32,7 @@ class MinWii(object):
         if wimoteSupport :
             from pywiiuse import pygame_wiimouse
             from pywiiuse.PyWiiUse import IR_BELOW
         if wimoteSupport :
             from pywiiuse import pygame_wiimouse
             from pywiiuse.PyWiiUse import IR_BELOW
-            pygame_wiimouse.init(1, 5) # look for 1, wait 5 seconds
+            pygame_wiimouse.init(4, 5) # look for 4, wait 5 seconds
             n = pygame_wiimouse.get_count()
             print '%d wiimotes' % n
             WT = pygame_wiimouse.WT
             n = pygame_wiimouse.get_count()
             print '%d wiimotes' % n
             WT = pygame_wiimouse.WT