code-dot-org / dance-party

Renderer for the Dance game type. Based on p5.js and p5.play.js.
https://code-dot-org.github.io/dance-party/
13 stars 13 forks source link

Set a func context #657

Closed breville closed 1 year ago

breville commented 1 year ago

This gives native code a context of event type and parameter. It can be useful, for example, in helping validate that a function was called inside a specific event, and for a key press event, which key was pressed.