Giter Club home page Giter Club logo

mobile-gamepad's Introduction

Mobile Gamepad

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

MobilaGamepad

Quick installation and start

  • Run below installation script
# Install nodejs
sudo apt-get update && sudo apt-get upgrade
curl -sL https://deb.nodesource.com/setup_5.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
  • Open in mobile browser the below URL (Mobile phone and Raspberry Pi have to be on the same network)
http://[ip_address_raspberry_pi]:8888
  • Run gamepad in background and enable on startup
# Enable Mobile gamepad on startup
sudo npm install pm2 -g
sudo pm2 start app.sh
sudo pm2 startup
sudo pm2 save

RetroPie configuration

  • Copy config file
sudo cp /other/retropie/MobileGamePad.cfg /opt/retropie/configs/all/retroarch-joypads/

Install application on mobile phone

  • Open chrome browser with url http://[ip_address_raspberry_pi]:8888
  • Open chrome menu (right top corner)
  • Select option Add to home screen
  • Add application title MobileGamepad
  • The shortcut should be added to home screen

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
  • Dump out all the input devices and the associated details about the device.
sudo lsinput
  • Display keyboard mapping of a particular event device
sudo input-kbd [number]
  • Display input events
sudo input-events [number]

TODO

  • Simulate mouse (Z Axis, Rotate Z Axis) by moving mobile phone (for Quake, etc.) [In progress]
  • Add second joystick (Z Axis, Rotate Z Axis) to move mouse (for Quake, etc.)
  • Add simple KODI or other installation package
  • Integrate gamepad with LaunchBox

Development

  • If you would like participate in innovate and interesting project, please contact with me.

Problem solving

  • No more problems with battery in gamepad
  • No more problems with multi-players
  • One gamepad uses everywhere

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.