@Septcanmat you can create a remap file and load it on-the-fly through
RGUI > Quick Menu > Controls > Load Remap File

If you post the content of your /opt/retropie/configs/all/retroarch-joypads/YOUR_JOYPAD_NAME.cfg maybe we can help you better.