Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Right and Middle mouse buttons not working on one machine.

Discussion in 'Editor & General Support' started by bug5532, Sep 11, 2019.

  1. bug5532

    bug5532

    Joined:
    Aug 16, 2011
    Posts:
    306
    HI,
    I'm having a bit of trouble with one of my clients machines. It seems to not be detecting right and middle mouse clicks. This works on most machines so I'm a bit stumped. We have tried multiple mice.
    Currently I'm using:
    Code (CSharp):
    1. if (Input.GetKeyDown(KeyCode.Mouse1))
    would I be better using:
    Code (CSharp):
    1. if (Input.GetMouseButtonDown(1))
    or are they the exact same code underneath?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,596
    So a working mouse works on one system, but the same mouse doesn't work on another? And "seems", have you confirmed via debugging?
     
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    8,755
    Some mouse drivers allow remapping of mouse buttons. This may have been done on this machine.
     
unityunity