SDL: fix mouse events