Are you using the Libretro core of pcsx_rearmed or the standalone emulator ? Is your RetroPie installation updated ? How did you install RetroPie and which image did you use ?
Please add the make/model of your controller, 8bitdo have a lot of controller models.