Judging by the driver, that behaviour appears to be as intended (at least by the writer of the driver. From https://github.com/raspberrypi/linux/bl ... #L382-L387:However, there is no event "value 0" when the joystick is released / is in neutral position (also the axis start with a non 0 value (see line 30, 34)).
Code:
if (type == EV_ABS) {if (state)input_event(input, type, button->code, button->value);} else {input_event(input, type, *bdata->code, state);}That code has been there for over a decade (https://github.com/raspberrypi/linux/co ... 96c0543749), so it's not something to change in a hurry. However, from reading the dt-bindings, this version does look more correct:
Code:
if (type == EV_ABS) {input_event(input, type, button->code, state ? button->value : 0);} else {input_event(input, type, *bdata->code, state);}Statistics: Posted by PhilE — Tue Oct 15, 2024 8:43 am