Adds mouse cursor capture.