Search Unity

Mouse Axis is NOT working properly after building to Windows 10

Discussion in 'Windows' started by Abd92, May 27, 2020.

  1. Abd92

    Abd92

    Joined:
    Jan 4, 2016
    Posts:
    10
    Hi,
    I am making FPS kind of controller and I am using the following code to lock cursor in the center of the screen:
    Code (CSharp):
    1. Cursor.lockState = CursorLockMode.Locked;
    The application is working fine in editor, but when building to some windows 10 systems(PCs),
    the mouse axis is not working as it should, kind of responding only in one direction.
    Below is a video showing the problem.
    Any Suggestions.?!
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    How are you querying mouse input?
     
  3. Abd92

    Abd92

    Joined:
    Jan 4, 2016
    Posts:
    10
    I am using the the standard asset FirstPersonController, and using custom script to lock the cursor.
    Knowing that this problem is happening in one Pc out of 6 tested.
     
    Last edited: May 28, 2020
  4. Abd92

    Abd92

    Joined:
    Jan 4, 2016
    Posts:
    10
    I am using the the standard asset FirstPersonController, and using custom script to lock the cursor.
    Knowing that this problem is happening in one Pc out of 6 tested.
     
  5. Abd92

    Abd92

    Joined:
    Jan 4, 2016
    Posts:
    10
    Any Suggestions!!
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Unfortunately I have no idea how FirstPersonController queries input. Did you try stepping through input code in the debugger, or logging the values it's reading?