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

Joystick button should call action only once #1670

Open
rafaellehmkuhl opened this issue Feb 6, 2025 · 1 comment
Open

Joystick button should call action only once #1670

rafaellehmkuhl opened this issue Feb 6, 2025 · 1 comment

Comments

@rafaellehmkuhl
Copy link
Member

Calling several times during the button press can cause several problems, like APIs being spammed with several HTTP calls, or JavaScript code being run multiple times.

@ES-Alexander
Copy link
Contributor

#1475 is potentially relevant here. It definitely seems worthwhile to only trigger on edge events (e.g. press/release, rather than repeatedly during hold), because then actions that want to trigger repeatedly during hold can do so themselves, whereas more standard actions can just be called once per button press.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants