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

from platypush.message.event import Event


[docs] class IrSensorEvent(Event): """ Base class for infrared sensor events """
[docs] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)
[docs] class IrKeyUpEvent(IrSensorEvent): """ Event triggered when a key on an infrared remote is released """
[docs] def __init__(self, message=None, *args, **kwargs): """ :param message: The received infrared message """ super().__init__(*args, message=message, **kwargs)
[docs] class IrKeyDownEvent(IrSensorEvent): """ Event triggered when a key on an infrared remote is pressed """
[docs] def __init__(self, message=None, *args, **kwargs): """ :param message: The received infrared message """ super().__init__(*args, message=message, **kwargs)
# vim:sw=4:ts=4:et: