Fixes mouse input.