Skip to content
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 not returning false once a key is released #5033

Closed
pieteroyens opened this issue Apr 26, 2017 · 6 comments
Closed

keyPressed not returning false once a key is released #5033

pieteroyens opened this issue Apr 26, 2017 · 6 comments

Comments

@pieteroyens
Copy link

Issue description

using the keyPressed boolean call (https://processing.org/reference/keyPressed.html), the value keeps being true once pressed, even after release.

for instance:
if (keyPressed) {
// some code
}

then never leaves the if statement when the key is released.

@benfry benfry closed this as completed in 9b5824e Apr 27, 2017
@benfry
Copy link
Contributor

benfry commented Apr 27, 2017

Ouch, a dumb typo caused that one. Fixed for 3.3.3. (Caused by the attempt to fix #4993)

@benfry
Copy link
Contributor

benfry commented May 2, 2017

@clankill3r
Copy link

clankill3r commented May 28, 2017

This bug is still there in 3.3.3
I think it only happens for CODED keys, and after like 3 seconds. Press up for example for 3 seconds.

void draw() {  
  println(keyPressed);
}

mac 10.11.5 (el captain)

@epar
Copy link

epar commented May 31, 2017

Not fixed in 3.3.3 for me either, macOS Sierra 10.12.4

@benfry
Copy link
Contributor

benfry commented Jun 1, 2017

Another problem was found, which will be fixed in 3.3.4: #5049

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants