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
/
pywiiuse
/
pygame_wiimouse.py
diff --git
a/src/pywiiuse/pygame_wiimouse.py
b/src/pywiiuse/pygame_wiimouse.py
index
835bff8
..
7680581
100755
(executable)
--- a/
src/pywiiuse/pygame_wiimouse.py
+++ b/
src/pywiiuse/pygame_wiimouse.py
@@
-29,6
+29,9
@@
class wiimote_thread(Thread):
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'''