Jinput with Xbox Controller (Trigger Question)

Hey guys,

I’ve been playing around with Jinput for the past few weeks, and I have run into some trouble regarding the triggers. (LT and RT). (They are apparently the z-axis).

What I’m trying to do is get the value from each trigger separately, as they will both control very different things. What I need is to get how hard each button is being pressed down.

The thing is, it seems as if both buttons act as if they were almost one. If both buttons aren’t being touched, the z-axis is 0. If both buttons are being held down, the z-axis is also 0. If one is down and the other isn’t, the z-axis is 1 and if the other is down and the other isn’t, z-axis is -1.

What I was hoping was that there were a way just to get the -1 -> 0 -> 1 value of each button independently, not as a whole. Is this possible?

Thanks.

Hi

This is what the directx driver gives us, so thats all we can do. There is another driver for the Xbox (360) controller that uses xinput, but we don’t have a plugin for jinput for that yet, as there is only 1 controller that uses it to expose functionality not available from the directx drivers.

Endolf

You might want to look into XBCD+:
http://redcl0ud.1.forumer.com/index.php?showtopic=1816&st=0

It’s a XInput -> DirectX wrapper.
It allows you to set up the mapping whatever way you want (Triggers as separate axes, triggers as buttons, or whatever else you feel like).