Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: buttons weirdness #421

Open
dragoncoder047 opened this issue Sep 26, 2024 · 1 comment
Open

bug: buttons weirdness #421

dragoncoder047 opened this issue Sep 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dragoncoder047
Copy link
Contributor

kaplay({ buttons: { foo: { keyboard: ["q", "w"] } } });
onButtonDown("foo", () => debug.log("foo"));
  1. press both q and w
  2. release one of them, hold the other
  3. the foo stops getting logged, even though you are holding a valid button binding down
@dragoncoder047 dragoncoder047 added the bug Something isn't working label Sep 26, 2024
@lajbel lajbel self-assigned this Sep 27, 2024
@lajbel lajbel added this to KAPLAY.js Oct 3, 2024
@lajbel lajbel moved this to TODO in KAPLAY.js Oct 3, 2024
@lajbel
Copy link
Collaborator

lajbel commented Oct 3, 2024

I mean, its how Set work, I think to fix it in 4000 will make it a Map, so when you release q, and hold w, it doesn't loose register.

Also what should happen between devices? mantain? no? Should be optionable?

@lajbel lajbel closed this as completed by moving to DONE in KAPLAY.js Oct 6, 2024
@github-project-automation github-project-automation bot moved this from WIP to DONE in KAPLAY.js Oct 6, 2024
@lajbel lajbel reopened this Oct 6, 2024
@lajbel lajbel added this to the 3001 milestone Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: TODO
Development

No branches or pull requests

2 participants