SDL: update event handling