Process SDL mouse events in UI