D-Pad buttons are not recognized when running RetroPie emulationstation

Is it possible to add the mouse buttons “L” and “R” as shoulder buttons?