keyPressed not returning false once a key is released #5033

Closed
pieteroyens opened this Issue Apr 26, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@pieteroyens

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 in 9b5824e Apr 27, 2017

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Apr 27, 2017

Member

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

Member

benfry commented Apr 27, 2017

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

@clankill3r

This comment has been minimized.

Show comment
Hide comment
@clankill3r

clankill3r 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)

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

This comment has been minimized.

Show comment
Hide comment
@epar

epar May 31, 2017

Not fixed in 3.3.3 for me either, macOS Sierra 10.12.4

epar commented May 31, 2017

Not fixed in 3.3.3 for me either, macOS Sierra 10.12.4

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jun 1, 2017

Member

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

Member

benfry commented Jun 1, 2017

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

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