Improved handling of differences between SDL and Qt mouse input values.