Source code for platypush.message.event.sensor.leap

from platypush.message.event import Event


[docs]class LeapFrameEvent(Event): """ Event triggered when a Leap Motion devices receives a new frame """
[docs] def __init__(self, hands, *args, **kwargs): """ :param hands: Reference to the detected hands properties (palm and fingers X,Y,Z position, direction etc.) :type hands: dict """ super().__init__(hands=hands, *args, **kwargs)
[docs]class LeapFrameStartEvent(Event): """ Event triggered when a new sequence of frames is detected by the Leap Motion sensor """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class LeapFrameStopEvent(Event): """ Event triggered when a Leap Sensor stops detecting frames """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class LeapConnectEvent(Event): """ Event triggered when a Leap Motion sensor is connected """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs]class LeapDisconnectEvent(Event): """ Event triggered when a Leap Motion sensor is disconnected """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
# vim:sw=4:ts=4:et: