Bluetooth controller in ports and PPSSPP

Hi! I just got new controller, it connets nice via bluetooth and I can use it to navigate in system and to play in RetroArch. But I can’t use it in PPSSPP or ports, is there some way to make it work there?
Also how can I remap the controller? I’d like to switch A and B, X and Y.

I’ve been having the same issue with a 8bitdo pro2 controller

just checked my 8bitdo micro, it works but not obvious way:

in muos abyx on pad = baxy on anbernic (i.e. it works with ps/xbox mapping)

in ppsspp itself by default abyx on pad = abyx on anbernic

in ppsspp games by default it does not work at all

but you can map pad buttons in ppsspp settings by adding additional button for the same action, it will affect both ppsspp controls and games controls

screenshot

I suppose for ports is the same - you need find names for pad buttons and edit gptk file for needed game