processing / processing/processing4

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

オープン
#795 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug core
主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。