Gamepad
⛶ Full screen
This is an experiment that demonstrates the use of a gamepad in a simple painting application. On a SNES-type controller, use the pad to move around, and the triggers to make your paintbrush bigger and smaller. On an Xbox controller, you need to use the chiclet buttons for movement. Made with Controller.js.
See also:
- https://samiare.github.io/Controller.js/
- https://github.com/samiare/Controller.js/wiki/Button-Events
- https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
- https://p5js.org/libraries/ > http://molleindustria.github.io/p5.play/