sbidolach / mobile-gamepad

Mobile wifi gamepad for RetroPie
http://mobilegamepad.net/
GNU General Public License v3.0
64 stars 9 forks source link

Mobile Gamepad

Mobile Universal Gamepad for RetroPie (http://mobilegamepad.net/)

MobilaGamepad

Quick installation and start

# 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

RetroPie configuration

sudo cp /other/retropie/MobileGamePad.cfg /opt/retropie/configs/all/retroarch-joypads/

Install application on mobile phone

Standalone installation step 1 Standalone installation step 2 Standalone installation step 3

Additional tools

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]

TODO

Problem solved