Pcsx rearmed has the buttons inverted

Hi!

I have a problem, I have a raspberry pi 2 with retropie 3 beta 2 installed and everything is fine except one thing, the controls on PCSX rearmed are inverted, this is, the X is the Circle, the Square is Triange and viseversa, all the other emulators have the correct buttons and I have revised the configuration file and used the controller setup script that comes with retropie several times just to be sure I didnt make a mistake. I use a ProU controller wich uses the same buttons as the SNES (same layout retroarch uses) but this emulator is configured like an Xbox controller like this:

X is set to A instead of B, Circle is set to B instead of A, Square is set to X instead of Y, Triangle is set to Y instead of X.

Im not sure which version of libretro PCSX rearmed retropie 3 uses