Added a virtual events class to handle SDL events.