Mobile Universal Gamepad for RetroPie (http://mobilegamepad.net/)
# Install nodejs (tested with nodejs v12.17.0)
sudo apt-get update && sudo apt-get upgrade
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install Grunt Command Line Interface
sudo npm install -g grunt-cli
# Clone project MobileGamePad and install dependencies
git clone https://github.com/sbidolach/mobile-gamepad.git
cd mobile-gamepad
npm install
# Run MobileGamepad
sudo grunt start
http://[ip_address_raspberry_pi]:8888
# Enable Mobile gamepad on startup
sudo npm install pm2 -g
sudo pm2 start app.sh
sudo pm2 startup
sudo pm2 save
sudo cp /other/retropie/MobileGamePad.cfg /opt/retropie/configs/all/retroarch-joypads/
http://[ip_address_raspberry_pi]:8888
Add to home screen
MobileGamepad
The below tool allows check gamepad connection and sending events
sudo apt-get install input-utils
sudo lsinput
sudo input-events [number]
sudo input-kbd [number]