This is a mod that swaps the default buttons for Dualshock 4 buttons. This will also work for PS5 Dualsense. 

This fix has been tested and is working in Ryujinx, no clue with Yuzu (it should work).

Controller setup for layouts:

Japanese / Nintendo           Standard / Western     

A -> Circle                            A -> Cross

B -> Cross                            B -> Circle

Y -> Square                          Y -> Square

X -> Triangle                        X -> Triangle