Add additional game loop events

Fixes #478 .
Merge pull request #769 from mucaho/more_events

Add additional game loop events