You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
normally you can detect CTRL+V as a key==22 (ASCII) inside keyPressed(){} callback. However with P3D renderer this does not work. It also affects other combinations such as CTRL+Z and others.
Minimal code to reproduce the issue:
void setup() {
//size(640, 480 ); //WORKS
size(640, 480, P3D); //DOES NOT WORK
}
int val = 0;
void draw() {
background(val);
val = 0;
}
void keyPressed() {
if (key == 22 ) { //ASCII
println("ctrl+v");
val = 255;
}
}