You need configure the buttons through raspi-config. There’s a tool to set them. Search on YouTube for ‘PS3 Controller BT on Retropie’! It isn’t difficult but need follow the steps.
Ps: I use ps3 bt controller on Retropie 2.6, I activate it when loading emulation station and the first red led powered on I can select the system and play!