processing / processing/processing4
with P2D renderer `key` variable doesnt update when pressing CTRL and another key
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 494
- Forks
- 183
- Avg merge
- 4h 39m
- Merged PRs (30d)
- 3
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the P2D renderer using a sketch whose keyPressed function prints key, then compare control followed by another key with subsequent presses. Trace the P2D/OpenGL input handling described in the issue. Done means key reports CODED for control and the correct value for the next key instead of remaining CODED.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100