1 /**
2  * Event Handler
3  */
4 module d2d.sdl2.EventHandler;
5 
6 import d2d.sdl2;
7 
8 /**
9  * An interface that just defines an object that can collect and respond to sdl events
10  * Event handlers can be added to a display to add unique behaviour for events
11  */
12 interface EventHandler {
13 
14     void handleEvent(SDL_Event event); ///Takes in an SDL event and should define what behaviour should happen for specific events
15 
16 }