Search Unity

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

    Joined:
    May 2, 2017
    Posts:
    14,446
    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:
    11,847
    Some mouse drivers allow remapping of mouse buttons. This may have been done on this machine.