Minor improvements to mouse handling in Windows.
* Don't lock the input_state mutex too much
* Capture the cursor so that the joystick follows the mouse even if you leave the window when holding down the mouse button.