Skip to content

Aplicativo web capaz de enviar dados para um Broker MQTT e controlar jogos em emuladores

License

Notifications You must be signed in to change notification settings

comsolid/remote-pad

Folders and files

NameName
Last commit message
Last commit date
Dec 28, 2016
Dec 28, 2016
Apr 3, 2017
Mar 9, 2017
Feb 26, 2017
Mar 9, 2017
May 13, 2017
Feb 26, 2017
Apr 19, 2017
Dec 28, 2016
Dec 28, 2016
Dec 28, 2016
Dec 28, 2016
Feb 26, 2017
Apr 3, 2017
Jan 3, 2017
Dec 31, 2016
Sep 3, 2021
Mar 27, 2017
Apr 5, 2017
Sep 3, 2021

Repository files navigation

Remote Pad

Build Status GitHub license

MQTT client running a vue SPA that is supposed to send commands as if it were the keyboard to a MQTT Broker remote-pad-server.

The ideia is to create a virtual gamepad for example for a race game, like Top Gear or Mario Kart 64, send commands to the server that will proper execute the keyboard keys: left and right, A, B, etc.

Race Pad page example

racepad-page

In the example the Y axis of the accelerometer is used as the input for left and right. And the buttons are use to send the equivalent keys of a emulator input keys.

architecture

Directional Pad

diretional-pad-page

Good for games like SNES Bomberman, N64 Mario Tennis.

Getting Started

You can install Remote Pad GUI to start a desktop app.

A video of this application can be seen at https://www.youtube.com/watch?v=93f1dRWxhyc.

Development

# install dependencies
npm install # or yarn

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run unit tests
npm run unit

For production

Install a proccess manager

sudo npm install pm2@latest -g

Start the server

pm2 start production/process.yml

Monitoring

pm2 monit