refactoring: move base implementation of event handling into the base class.
update: add event handler for sdl2.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>