Hello,
The FX2D renderer is reporting lower case key presses as upper case.
On my Windows 10 PC this code only prints upper case characters to the console:
import processing.javafx.*;
void setup()
{
size(100, 100, FX2D);
}
void draw()
{
}
void keyPressed()
{
println(key);
}
//Workaround:
void keyTyped()
{
println(key);
}
It works fine with P2D!
I did find a reference and workaround in the old repository:
'key' variable is always uppercase in FX2D renderer · Issue #3938 · processing/processing · GitHub
:)