Library / tool for event-driven Arduino code ?

There was someone who elaborated such a system a few month ago ... I 'll check if I can find it ....