X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/756b357fbb605b408bba256d93243cafb5fa6264..d6f0f1bc75a5e81a24d0b1a2bec08bd2a15e7352:/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'''