Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Input.MousePosition value reaches maximum value really fast

Discussion in 'VR' started by justprogramming, Jun 8, 2017.

  1. justprogramming

    justprogramming

    Joined:
    Sep 12, 2014
    Posts:
    21
    Hi,

    I am currently trying to implement mouse control for the cursor. I have run into a problem that the mouse is really sensitive. And the value of Input.MousePosition goes from 0 to maximum value really fast, so after it is reaching the maximum or minimum value, Input.getAxis() would always return 0. I am currently using Input.getAxis to determine which direction the cursor should be moving. And if it is 0, there is no way for me to determine it anymore.

    I faced this problem when I am trying to use a bluetooth mouse with hololens. However, it works fine when I try to use remote holographic tool in Unity.

    Does anybody know a solution to this problem or a work around?

    Thanks in advance.
     
    Last edited: Jun 8, 2017
  2. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228
    Hi alasimida - I'm not familiar with the backing code, but the discrepancy between editor and runtime behavior definitely sounds like a bug to me. Would you mind filing one for us? (In the Unity editor, just go to Help and select the "Report a Bug..." option.) Thanks!
     
  3. justprogramming

    justprogramming

    Joined:
    Sep 12, 2014
    Posts:
    21
    Hi there,

    Sorry for the late reply. What do I need to put in the bug report? Do I just put the above question in it?

    Thanks.
     
  4. unity_andrewc

    unity_andrewc

    Unity Technologies

    Joined:
    Dec 14, 2015
    Posts:
    228
    Just put "[HoloLens]" in the title so it gets assigned to our team far faster than otherwise. Maybe "[HoloLens] Input.mousePosition reaches maximum value far faster on HoloLens than in the editor" or something of the like.
     
  5. justprogramming

    justprogramming

    Joined:
    Sep 12, 2014
    Posts:
    21
    Sure, thanks for your reply!