@petitssuisses Sorry if this reply is too late.
I would go for a new gamepad type to keep the existing in its current state as fallback. You could start with a copy of the MAMEGamepad.cpp file.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.