Add additional game loop events

Fixes #478 .