processing / processing/processing4
with P2D renderer `key` variable doesnt update when pressing CTRL and another key
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 494
- Fork
- 183
- Merge medio
- 4h 39m
- PR unite (30g)
- 3
Descrizione
Created by: grimtin10
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
- Set renderer to P2D
- Create a keyPressed function that prints out the
keyvariable - Press control and then another key
Your Environment
- Processing version: 4.3 (latest)
- Operating System and OS version: Windows 10 Pro 22H2
Possible Causes / Solutions
OpenGL renderer isn't updating key variable when it should be.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema con il renderer P2D usando uno sketch la cui funzione keyPressed stampa key, quindi confronta control seguito da un altro tasto con le pressioni successive. Traccia la gestione dell'input di P2D/OpenGL descritta nell'issue. Il lavoro è completato quando key restituisce CODED per control e il valore corretto per il tasto successivo, invece di rimanere CODED.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- computer-graphics
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100