[escher] Add an event "TimerTick"

Change-Id: Ib6d1cacdf13226d37b1a8fdf6ecf8a92d077a96f
This commit is contained in:
Émilie Feral
2017-05-22 14:35:02 +02:00
parent 67e1943679
commit 339afe0787
6 changed files with 5 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ bool RunLoop::step() {
for (int i=0; i<numberOfTimers(); i++) {
Timer * timer = timerAtIndex(i);
if (timer->tick()) {
windowRedraw();
dispatchEvent(Ion::Events::TimerTick);
}
}
}