score icon indicating copy to clipboard operation
score copied to clipboard

Gamepad wrong min value for triggers

Open edumeneses opened this issue 4 months ago • 2 comments

The gamepad triggers show wrong nim values: -1 instead of 0

This is problematic when relying on automatic ranging, e.g., mapping the gamepad trigger (range 0 to 1) to control frequency in a shader or synth (range from 0 to 200 Hz).

Tested with a PS4 controller (gamepad mode activated).

edumeneses avatar Aug 18 '25 14:08 edumeneses

https://github.com/ossia/libossia/blob/master/src/ossia/protocols/joystick/game_controller_protocol.cpp#L48 all of this is defined in this file if you want to check

jcelerier avatar Aug 18 '25 17:08 jcelerier

The problem is on line 104; the triggers are on the axes category in SDL and shared the same min and Max in score. This is not a priority. I'll try to fix this earlier next week.

edumeneses avatar Aug 18 '25 22:08 edumeneses