Skip to content

Add a keyIsUp to detect key release state #8529

@pflannery

Description

@pflannery

Increasing access

This would make it easier than having to maintain two separate key state systems

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature enhancement details

Now that keyIsPressed in p5js 2.+ is immutable we need to track which key is released (aka keyUp events).

Not sure if this is a regression from v1.0?

Can we add a keyIsUp(code: number|string) function to prevent having to constantly write custom keyState tracking logic?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions