projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Encore un coup pour préparer la personalisation du comportement des wiimotes.
[minwii.git]
/
src
/
minwii
/
app.py
diff --git
a/src/minwii/app.py
b/src/minwii/app.py
index
d456b8e
..
5d5d245
100755
(executable)
--- a/
src/minwii/app.py
+++ b/
src/minwii/app.py
@@
-51,6
+51,7
@@
class MinWii(object):
self.nwiimotes = nwiimotes = pygame_wiimouse.get_count()
console.debug('wiimotes found : %d', nwiimotes)
self.WT = WT = pygame_wiimouse.WT
self.nwiimotes = nwiimotes = pygame_wiimouse.get_count()
console.debug('wiimotes found : %d', nwiimotes)
self.WT = WT = pygame_wiimouse.WT
+ WT.setEventCallBack(pygame_wiimouse._default_event_cb)
WT.pause()
else :
self.WT = _WTFacade()
WT.pause()
else :
self.WT = _WTFacade()
@@
-67,6
+68,7
@@
class MinWii(object):
songFile, playMode, wiimoteIndex = '', 'NORMAL', 0
while True :
songFile, playMode, wiimoteIndex = '', 'NORMAL', 0
while True :
+ WT.resume()
exit, songFile, playMode, wiimoteIndex = \
self.selectSongAndOptions(songFile, playMode, wiimoteIndex)
exit, songFile, playMode, wiimoteIndex = \
self.selectSongAndOptions(songFile, playMode, wiimoteIndex)
@@
-78,7
+80,6
@@
class MinWii(object):
if not instrumentDescription :
continue
if not instrumentDescription :
continue
- WT.resume()
self.runPlayingScreen(songFile, playMode, instrumentDescription)
WT.pause()
self.runPlayingScreen(songFile, playMode, instrumentDescription)
WT.pause()