Has everyone missed the fact that this is by design?
(see section: Axises)
Go to the Windows joystick calibration screen. It's only one axis because it's supposed to be a linked "throttle and/or brake" axis.
XInput may allow separate per this one:
I know some Xbox games got around this limitation, but I've never heard of how they did it.
If you only build your game for Windows, you may be interested in XInput.NET which allows full XBox 360 controller support. For an InputManager.asset file with four XBox 360 controllers mapped click here or with separate axises for triggers: click here
Supposedily, you can download the Xbox 360 controller driver:
And there's a config program to change whether or not the axies are linked. The point here is that it's not Allegro, and it's not a portable solution.
Also, I forgot, don't forget to read Microsoft's insane "official reason":
However, some functionality provided by XInput will be missing from the DirectInput implementation:
- The left and right trigger buttons will act as a single button, not independently
- The vibration effects will not be available
- Querying for headset devices will not be available
The combination of the left and right triggers in DirectInput is by design. Games have always assumed that DirectInput device axes are centered when there is no user interaction with the device. However, the Xbox 360 controller was designed to register minimum value, not center, when the triggers are not being held. Older games would therefore assume user interaction.
The solution was to combine the triggers, setting one trigger to a positive direction and the other to a negative direction, so no user interaction is indicative to DirectInput of the "control" being at center.
In order to test the trigger values separately, you must use XInput.
Devs are not happy with their explanation. (see comment section)
On the brightside, apparently users were so fed up they made their own driver:
To bring back the functionality that Microsoft ruined. Let's see how the pro-Microsoft people here try and spin this as positive.