Skip to content

Add compatibility for keyboard events (keyCode constants) to data.js #26

Description

@ksen0

Based on this issue: processing/p5.js#7876 looks like the data.js add-on is not allowing the 1.x use: https://editor.p5js.org/ksen0/sketches/cvGEDgY_0 - looks like it provides compatibility for touch/mouse but not keyboard.

We've in the past combined data with events; it may also be useful to relabel the add-on in the editor from "Data Structures" to "Data & Events." I think this combination still makes sense because it contains various usages where the 2.0 breaking changes have the goal of more consistency - but if others think it would be better to split them into data and events, for example, I am also happy to support (with the attendant editor updates)

This issue includes reinstating 1.x constants (LEFT_ARROW) and keyboard events that have been changed (reviewing hem first; keyIsPressed, keyTyped, keyReleased, keyPressed, keyIsDown).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions