@stoqns14 I don't know what it's like in Retropie, but in PrBoom in Recalbox you can see in the documentation how it works:
https://wiki.recalbox.com/en/emulators/ports/doom/libretro-prboom