10
* @param pin the pin to monitor
15
* Add a duration at which the specified event id should be triggered.
17
* @oaram duration the time at which the event should be triggered
18
* @param event_id a unique identifier for the event (not 0)
20
void add_event_at( int duration, int event_id );
23
* Update internal state
28
* Retrieve the event id of the event that was triggered at the last
29
* update, if there was one.
31
* @return event id, or 0
33
int get_triggered_event();
43
/** milliseconds since last state change */
46
/** triggered event */
49
/** press events durations -> event ids */
50
std::map< int, int > _press_events;