Initial commit for event handling
To make it compile
Add globals.h