processing / processing/p5.js-compatibility

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

Open
#26 11 comments 0 reactions 1 assignee View on GitHub

@kunstewi is already working on this.

Since Dec 8, 2025.

enhancement good first issue help wanted
Dominant language
JavaScript
Stars
18
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Based on this issue: https://github.com/processing/p5.js/issues/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).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.