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.