increpare / increpare/PuzzleScript

Weird key repeat cycle when holding multiple buttons

Open
#1,137 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
185
PR merge metrics
No merged PRs in 30d

Description

Holding Right and Up (which I will now refer to as A and B), the engine receives input turns like this:
ABBABABA...

Image (image from Vertebrae)

It's a minor annoyance in many games (and should be fixed solely for that) but a very concrete example of a game that relies on inputs alternating and not doubling up is Hebird (link to a fork but my testing was done solely on vanilla)
Not a real case but holding ABCD makes for ABCDBCDABCD...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the input sequence while holding two or more buttons, then trace the engine's keyboard repeat and input-dispatch handling. Compare the observed sequence with the intended alternating behavior described in the issue. Done means simultaneous held inputs no longer duplicate or reintroduce one key unexpectedly, with the reported examples behaving consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.