How to set different mappings for different "XBox 360 Controllers"?

So, I have three different controllers that I use for RA :

  • An 8Bitdo SF30 controller ;
  • An 8Bitdo M30 controller ;
  • A GameSir Cyclone 2.

The problem is, RetroArch identifies them all as an “XBox 360 Controller”, and so, it applies the same button mapping for all. But it does not work, because for the M30 controller for example, “Dpad Up” is recognized as “Axis -1”, but for the SF30, “Dpad Up” is recognized as “Button 11”, so it means I cannot switch between the two flawlessly.

Is there a way to make RA differenciate all 3 controllers properly?