Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

[solved] Mouse Movement Returns 0 At Low Quality In Windows Standalone

Discussion in 'Windows' started by lpeppel, Apr 10, 2019.

  1. lpeppel


    Jan 8, 2013
    As the title states, i take the input from my mouse using Input.GetAxisRaw("Vertical") the "Vertical" input is set to MouseMovement.

    Everything works well in the editor and in the Standalone bulid, as long as the quality is set to Medium or Higher. If the quality of the Standalone is Low or Lower then Input.GetAxisRaw will return 0 (sometimes it will return a value but the rate at which it returns a value is very low, resulting in a laggy input) unless i hold the Standalone Window and drag it (in this case it works as normal).
    Everything works fine with keyboard input at all qualities.

    Has anyone encountered this problem or knows what could cause it?


    the problem is cause by the V-Sync option in the Quality settings. Just enable V-sync to have the mouse work as intended
    Last edited: Apr 10, 2019
  2. Tautvydas-Zilys


    Unity Technologies

    Jul 25, 2013
    Can you show your input code? It's likely you're using the API incorrectly. Turning off vsync will increase your frame rate, so each frame the amount that the mouse moves will be smaller.