Search Unity

Cinemachine camera spinning when using joystick

Discussion in 'Input System' started by vtambini, May 18, 2022.

  1. vtambini

    vtambini

    Joined:
    Jul 11, 2016
    Posts:
    4
    Hi, I tried asking this on the cinemachine forum, but no luck.

    I'm using Cinemachine and I set up Joystick inputs to control my camera. I'm using the same "Mouse X" and "Mouse Y" names, so the player can choose between joystick or keyboard/mouse.

    Mouse Y (vertical orbit) works fine. It goes up and down just fine. Mouse X however keeps spinning to the right as soon as I hit play. I noticed that Mouse X has a value of -1 when I press play.
    I tried changing the dead zone to 0.19 (default one for joysticks) it didn't work. Then I tried 0.9999 (it didn't work), then I tried 1 and it fixed the spinning issue, however I can only rotate to the left (value 1), when I try to rotate right the value stays on 0.

    I tested my controller and it looks like the sensitive is working and I never had any issue with it. So I assume this is not hardware.

    Can anyone help me, please?



    EDIT (SOLVED): I figured this out. I had another joystick plugged in my computer. I removed that device and it works now. I hope this can help others :)
     

    Attached Files:

    Last edited: May 18, 2022