processing / processing/processing4
with P2D renderer `key` variable doesnt update when pressing CTRL and another key
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 494
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用一个其 keyPressed 函数打印 key 的 sketch,通过 P2D 渲染器重现该问题,然后比较 control 后跟另一个键的情况与后续按键。跟踪 issue 中描述的 P2D/OpenGL 输入处理。完成的标准是:key 对 control 报告 CODED,并对下一个键报告正确的值,而不是一直保持为 CODED。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- computer-graphics
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100