Search Unity

Mousebuttons swap when game is published

Discussion in 'Editor & General Support' started by adshead, Aug 16, 2005.

  1. adshead

    adshead

    Joined:
    Jul 19, 2005
    Posts:
    74
    Hi,

    I use a 3 button mouse and within Unity I am controlling my camera rotation by detecting when the RIGHT mouse button is pressed using Input.GetMouseButton(2).

    However when I publish my game I find that the RIGHT mouse button does nothing but instead the Mousewheel seems to become mousebutton 2.

    Is this normal or a bug?
     
  2. adshead

    adshead

    Joined:
    Jul 19, 2005
    Posts:
    74
    Nevermind I figured it out. I should be using mousebutton(1) for the right mouse button
     
  3. DaveyJJ

    DaveyJJ

    Joined:
    Mar 24, 2005
    Posts:
    1,558
    I must do this like 10 times a day with Unity. :oops:
     
  4. adshead

    adshead

    Joined:
    Jul 19, 2005
    Posts:
    74
    It's all good fun though! :D
     
  5. DaveyJJ

    DaveyJJ

    Joined:
    Mar 24, 2005
    Posts:
    1,558
    With Unity, yes it is.