X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/756b357fbb605b408bba256d93243cafb5fa6264..3aea760aa437f36e28dee3a9e5c1f5cde649dc4a:/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'''