Improved input to use raw mouse input.