Fixed some things with mouse input.