Search Unity

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

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

  1. lpeppel

    lpeppel

    Joined:
    Jan 8, 2013
    Posts:
    2
    Hi,
    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?

    thanks!


    Solution:
    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

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,555
    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.