Sorry :)
I was a little inaccurate formulating the question!
In fact I think that any that has wanted in the past to configure a gamepad on uae4arm has encountered a similar problem...
Pi Model: 2+
RetroPie Version Used: 4.1 downloaded from the website
USB Devices connected: Generic usb keyboard
Controller used: FC30 8bitdo
I saw another thread with a similar problem.
Unfortunatelly, after a lot of trying to replace uae4arm binary, it crashed whatever I pass the curson on input configuration tab, inside uae4arm.
Someone has some advice to configure a gamepad/keyboard on this emulator?