XBox 360 Controller Triggers

Miscellaneous Forums/Win32 Discussion/XBox 360 Controller Triggers

Anyone got any idea how to read the left and right triggers separately?

Basically in the standard driver they map onto +/- values for the Z axis, if they are both held you'll end up with a value of zero (ish).

Found some info on XInput here: http://www.codeproject.com/KB/directx/xbox360_cont_xinput.aspx

And from what I can see, XInput API stores them as two bytes in the structure so I'm wondering if I can hack the win32 joystick stuff to grab these values in their raw form.

Any tips much appreciated!