quinton-ashley / p5play

JavaScript game engine that uses q5.js/p5.js for graphics and Box2D for physics.
https://p5play.org
GNU Affero General Public License v3.0
667 stars 184 forks source link

Add `contros.onConnect` and `contros.onDisconnect` #316

Closed quinton-ashley closed 7 months ago

quinton-ashley commented 7 months ago

Proposed by Discord user @ metamere and others

I also want to add a new function contros.swap for conveniently swapping controller positions in the array.

quinton-ashley commented 7 months ago

Added in v3.20.7