The issue for me is that I am using the controller for kodi as well, so I have it set up to work as a (“fake”) keyboard according to this tutorial:
/usr/bin/xboxdrv --config /home/osmc/xbmc.ini --silent --autofire RT=25 --autofire LT=25 --autofire du=200 --autofire dd=200 --autofire dl=500 --autofire dr=500 &
The xbmc.ini maps the keys to represent button strokes, e.g.
[ui-buttonmap] # Face buttons A = KEY_ENTER B = KEY_BACKSPACE X = KEY_X Y = KEY_ESC
Now when I launch emulationstation (and connected emulators) I want to avoid relaunching xboxdrv as I’d need to do this every time I jump between kodi and emulationstation (which I tried but proved quite shaky as my launch scripts aren’t really behaving).