X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/756b357fbb605b408bba256d93243cafb5fa6264..b7a1c3230642ebb22d03c135811ed272352423ee:/src/pywiiuse/pygame_wiimouse.py diff --git a/src/pywiiuse/pygame_wiimouse.py b/src/pywiiuse/pygame_wiimouse.py index 835bff8..7680581 100755 --- 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 + + def setEventCallBack(self, func) : + self.eventCallBack = func def run(self): '''This runs in a separate thread'''