processing / processing/processing4

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

未关闭
#795 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug core
主要语言
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

  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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。