New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
name-here opened this Issue Apr 3, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@name-here

name-here commented Apr 3, 2017

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);}
}`

@Lord-of-the-Galaxy

This comment has been minimized.

Show comment
Hide comment
@Lord-of-the-Galaxy

Lord-of-the-Galaxy Apr 5, 2017

Foematted code :

void setup(){
size(100, 100);
}

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

Lord-of-the-Galaxy commented Apr 5, 2017

Foematted code :

void setup(){
size(100, 100);
}

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

@benfry benfry closed this in 2b7a90b Apr 25, 2017

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Apr 25, 2017

Member

Fixed for 3.3.2.

Member

benfry commented Apr 25, 2017

Fixed for 3.3.2.

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