Skip to content

keyPressed is false if one key is released while multiple keys are pressed #4993

Description

@name-here

keyPressed is false if one key is released while multiple keys are pressed. For example, if Q and W keys are pressed, and only Q is released, keyPressed becomes false. Code to test it:
`void setup(){
size(100, 100);
}

void draw(){
background(0);
if(keyPressed){rect(25, 25, 50, 50);}
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions