I read the GamePad doc:
scirra.com/manual/143/gamepad
RawButton(Gamepad, Index)
Retrieve raw button input for a specific gamepad and button index. This returns the value without keymapping. Button values range from 0 to 1 (pressure sensitive buttons can return values in between).
I'm using a Xbox One controller. I figured the triggers are 6 and 7 so:
Gamepad.RawButton(0, 6)
Gamepad.RawButton(0, 7)
But it not retrives anything between 0-1. Just 0 and when the trigger is around 50% then changes to 1.
So how i get the pressure of triggers correctly?