fixed bug with sdl_geteventstate, thx to d.l.i.w.