LeapMotion Events

10 views
Skip to first unread message

Roy L.

unread,
Jun 28, 2016, 4:37:45 AM6/28/16
to Kivy users support
Is there an Example for the on_motion Events?
I tried to bind them like in the documentation but it fails.
Here is the Code Snipped
class TestApp(Widget):
   
def __init__(self, **kwargs):
       
super(TestApp, self).__init__(**kwargs)
       
Window.bind(on_motion=self.on_motion)
       
self.add_widget(Button(text='hello world'))
   
def on_motion(self, etype, motionevent):
       
# will receive all motion events.
       
print(motionevent)
       
print(etype)
       
#print(motionevent)
       
pass

Its just called when i do a mouseclick, but Leapmotion isnt initialized. So did i have to start the Leapfinger eventprovider manually, cause its registert in the leapfinger.py.

Thanks a lot :)
Reply all
Reply to author
Forward
0 new messages