]> CRI, Mines Paris - PSL - minwii.git/blobdiff - src/pywiiuse/pygame_wiimouse.py
correction du commentaire.
[minwii.git] / src / pywiiuse / pygame_wiimouse.py
index 835bff84f82310de4291c42749ec0c231b5c3209..7680581c2a7a975e6b3e3de71b8d5dadd0e53f06 100755 (executable)
@@ -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
+    
+    def setEventCallBack(self, func) :
+        self.eventCallBack = func
 
     def run(self):
         '''This runs in a separate thread'''