internal static extern int SDL_PushEvent(ref SDL_Event _event);
internal static extern int SDL_WaitEventTimeout(out SDL_Event _event, int timeout);
internal static extern int SDL_PollEvent(out SDL_Event _event);
internal static extern int SDL_WaitEvent(out SDL_Event _event);
private bool GetEventListener(SDL_Event sdlEvent, out IEventListener listener) { listener = listeners.Find(el => el.Events.HasEvent((EventType)sdlEvent.type)); return(listener != null); }