summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
756b357)
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()
songFile, playMode, wiimoteIndex = '', 'NORMAL', 0
while True :
songFile, playMode, wiimoteIndex = '', 'NORMAL', 0
while True :
exit, songFile, playMode, wiimoteIndex = \
self.selectSongAndOptions(songFile, playMode, wiimoteIndex)
exit, songFile, playMode, wiimoteIndex = \
self.selectSongAndOptions(songFile, playMode, wiimoteIndex)
if not instrumentDescription :
continue
if not instrumentDescription :
continue
self.runPlayingScreen(songFile, playMode, instrumentDescription)
WT.pause()
self.runPlayingScreen(songFile, playMode, instrumentDescription)
WT.pause()
self.start()
self.startup.get(True) # wait for the thread to get started and acquire the motes
self.eventCallBack = _default_event_cb
self.start()
self.startup.get(True) # wait for the thread to get started and acquire the motes
self.eventCallBack = _default_event_cb
+
+ def setEventCallBack(self, func) :
+ self.eventCallBack = func
def run(self):
'''This runs in a separate thread'''
def run(self):
'''This runs in a separate thread'''