processing / processing/processing4

with P2D renderer `key` variable doesnt update when pressing CTRL and another key

Aperta
#795 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug core
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

  1. Set renderer to P2D
  2. Create a keyPressed function that prints out the key variable
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. 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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.