This mapping fixes the flipp of the X/Y Triangle/Square buttons on the controller. I needed this fix for game dev and for the PS2 emulator, PCSX2
insert the following line into the game_controller_db.txt file, on macOS, file can be found:
/Applications/PCSX2.app/Contents/Resources
SDL_GameControllerAddMappingsFromFile(/path/to/file)