projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
démarrage du support de plusieurs wiimotes.
[minwii.git]
/
src
/
app
/
minwii.py
diff --git
a/src/app/minwii.py
b/src/app/minwii.py
index
1cf7daf
..
c609246
100755
(executable)
--- a/
src/app/minwii.py
+++ b/
src/app/minwii.py
@@
-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