Function pollEvent
Wraps SDL_PollEvent
which returns the latest event in queue
Returns
dsdl2
if there's an event, otherwise null
Example
// Polls every upcoming event in queue
dsdl2 .pumpEvents();
while (auto event = dsdl2 .pollEvent()){
if (cast(dsdl2 .QuitEvent)event) {
dsdl2 .quit();
}
}