@rodblanc Check these tutorials calmly, it should help:

https://recalbox.gitbook.io/documentation/tutorials/controllers/gpio/play-with-your-original-controller-using-gamecon ( I don't know what happened to the images in this tutorial, if you need, see the original in French) https://recalbox.gitbook.io/documentation/tutorials/controllers/gpio/gpio-controls/gpio-joystick-driver-for-raspberry-pi https://recalbox.gitbook.io/documentation/v/francais/tutoriels/controleurs/gpio/les-controleurs-gpio