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
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.
Good for games like SNES Bomberman, N64 Mario Tennis.
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.
# 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
Install a proccess manager
sudo npm install pm2@latest -g
Start the server
pm2 start production/process.yml