added sdlEvent support