It is that notorious fact, that it's triggers act as axis not buttons.
JoyToKey helped me here. The most important thing that it is very easy to implement, you don't need virtual joystick drivers and all that stuff. You can also extend gamepad functions almost to infinity with key combinations.
Pretty self-explanatory, I hope: