Open grimtin10 opened 8 months ago
Are you pressing both the keys CTRL and (any other key) simultaneously? As in CTRL+<key>
? Or CTRL
then <key>
?
Also in-case this helps, key
should contain CODED
and if you want to get the value of the key, use keyCode
instead of key
.
// using P2D
void keyPressed() {
if (key == CODED) {
println((char)keyCode);
}
}
Description
When using the P2D renderer the
key
variable doesn't update when pressing control and then another key.Expected Behavior
Pressing control and then another key should set the
key
variable to CODED (65535) and then whatever other key you pressed.Current Behavior
Pressing control and then another key doesn't update the
key
variable and it ends up containing CODED for both key presses and any subsequent key presses.Steps to Reproduce
key
variableYour Environment
Possible Causes / Solutions
OpenGL renderer isn't updating
key
variable when it should be.