Input Issues

I am trying to get input from the Xbox 360 controller triggers on the 3rd axis and I ran into a problem when both are pressed. If both triggers are pressed, even when one is inverted or ones sensitivity is different than the others, I get 0 for both pressed and 0 when both are up and 0 when both are held at the same amount. How do I get it to register up and held?

The 360 controller under Windows only registers the triggers as separate axes under XInput. Under DirectInput, the triggers are mapped to a single axis (left trigger goes to -1, right trigger goes to 1… depressing both cancels out the input, as you’ve already noticed).

Only way to get this to map properly is implementing XInput in your project.

there is a free xinput addon (managed code based I think) for unity.

Thanks for the replys. I found that out after searching the forums. I got the XInput dll plugin and it works great. Using 3 Beta and thought they would have fixed this already.

there is no “fixing” for this.

they would have to drop the input support they have to enforce xinput which is inacceptable as microsoft fucked it up. no older device than 2008 or alike would work anymore at all as they stop working without xinput drivers.