Question about gamepad trigger axis values: Is -32767 or 0 the correct resting position?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

during a discussion of a Retropi issue [1] a question about the Linux
kernel gamepad spec compared to the actual gamepad drivers came up.

The spec says in [2]:

> "ABS trigger values start at 0,
> pressure is reported as positive values."

The kernel drivers for the XBox 360 gamepad, for the Sony Sixaxis PS3
gamepads and other drivers based on their example (like the BigBen
gamepad) however return trigger axis values with a value range that...

- starts at -32767 (trigger resting position) and
- goes up to +32767 (full pressure on the trigger)
- with 0 being the middle position (half pressure)

Please clarify, is the spec wrong or are the drivers in violation of it?

If they are in violation, which should be changed, the spec or the
drivers' behavior?

Thank you,

Hanno

[1] https://github.com/RetroPie/EmulationStation/issues/568
[2] https://www.kernel.org/doc/html/v5.2/input/gamepad.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux