Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

Xbox controller triggers?

Discussion in 'Editor & General Support' started by newjerseyrunner, Nov 29, 2018.

  1. newjerseyrunner

    newjerseyrunner

    Joined:
    Jul 20, 2017
    Posts:
    774
    Hello,
    I have a very strange issue. Unity doesn't seem to see my Xbox controller's triggers. I can interact with every other button and joystick on the controller though. For example, the left and right bumpers are "joystick button 8" and "joystick button 7." The joysticks are 1 and 3 yadda yadda yadda.

    I discovered these by simply opening a built game, going to the input tab and pressing the button and seeing what showed up. Nothing shows up when I press the triggers. I've tried both a "joystick axis" and "button," but it just never shows up.

    It's not the controller because I use it on my XBone almost every day, and I also play games with it on my Mac, so I know it's not the OSX driver.

    How do I get input from these triggers?
     
  2. BoogieD

    BoogieD

    Joined:
    Jun 8, 2016
    Posts:
    236
    The X Box 360 controller triggers share joystick axis 3. One trigger gives a negative and the other a positive value.
    The X Box One controller, I believe use joystick axis 9 and 10.
     
unityunity