Fixed 2D mouse positioning with some hijinks.