@krazeetyger thanks mate, I can confirm it works! Steps taken:
Installed latest Raspberry Pi OS Desktop or Lite does not matter, just make sure to boot to CLI.
Installed RetroPie manual, see: https://retropie.org.uk/docs/Manual-Installation/
Installed xpadneo through RetroPie-Setup under Manage packages -> Driver
sudo /home/pi/RetroPie-Setup/retropie_setup.sh
Add the next line:
Privacy = device
to /etc/bluetooth/main.conf
sudo nano /etc/bluetooth/main.conf
Install SDL2 2.0.14:
cd ~
wget https://www.libsdl.org/release/SDL2-2.0.14.tar.gz
tar zxvf SDL2-2.0.14.tar.gz
cd SDL2-2.0.14
mkdir build
cd build
../configure
make
sudo make install
Verify xpadneo is running properly:
lsmod | grep hid_xpadneo
should output something like:
hid_xpadneo 20480 0
ff_memless 16384 1 hid_xpadneo
if not type in console:
sudo modprobe hid_xpadneo
verify again.
sudo systemctl restart bluetooth
sudo bluetoothctl
[bluetooth] agent on
[bluetooth] default-agent
[bluetooth] scan on
[bluetooth] pair XX:XX:XX:XX:XX:XX
[agent] Accept pairing (yes/no): yes
The light on the XBOX controller should now lid constantly which means it's connected, you can configure the buttons in RetroPie, at this moment LT and RT buttons do not work (it does not register), anyone have a solution for that?
I use a Raspberry Pi 4 with 4GB with the default WLAN/Bluetooth, not an external dongle.
Enjoy!