processing/processing4

CTRL+V not posting 22 in P2D/P3D as it does in the default renderer

Open

#632 ouverte le 6 janv. 2023

Voir sur GitHub
 (7 commentaires) (0 réactions) (0 assignés)Java (176 forks)auto 404
help wantedopengl

Métriques du dépôt

Stars
 (439 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Created by: trackme518

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;
  }
}

Guide contributeur