Fix mouse bug in SDL port