Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 126
Description
Created by: slu4coder
Hi guys,
thanks for your excellent work on Processing 4. Sorry to report this annoying issue making it essentially impossible to detect the difference between SHIFT and PAGE_UP when using the P2D renderer. Problem: Both use keyCode = 16 :-(
This is not a problem under the DEFAULT renderer. It uses keyCodes 33-35 for HOME/END/PG_UP/PG_DN and 16 for SHIFT.
P2D however uses keyCodes 2, 3, 16(?) and 11 for the above keys and again 16 for SHIFT.
Btw, I am typing on a German keyboard but for the keys involved that shouldn't make any difference, I guess.
Good luck! slu4.
void setup(){size(200, 200, P2D)}
void draw(){}
void keyPressed(){println(key, int(key), key==CODED, keyCode)}