This project template is an arcade stick emulator
You can edit the static/js/config.js
file to choose the behavior of the jostick.
display_update_ms
will change the update time of the LCD Displayjoystick_mode
will change between regular update of the joystick or event based updates where commands are sent when the joystick is movedjoystick_update_ms
will change the update time of the Joystickbutton_repeat_limit
limit of key event sentbutton_keydown_event
send event: up event when buttons are releasedbindings
key bindings to control the arcade board
- Gunicorn only runs on UNIX, therefore windows user will use WSL2, setup instructions
- install Python 3.9.4 (virtualenv recommended)
- install requirements with
pip install -r requirements.txt
- launch server with either:
gunicorn --worker-class eventlet -w 1 app:app
flask run
./start.sh
You can also run arcade stick on Docker
docker-compose up
The folder will be mounted in docker compose so the server will relaunch on edit.
- create the heroku app on heroku.com
- add the heroku github link to the git remote
git remote add heroku github.com/..../.git
- push the code to heroku
git push heroku
- Open app.py and check for TODO comments