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

Allow more sensitive button presses #1

Open
likethemammal opened this issue Jul 9, 2015 · 1 comment
Open

Allow more sensitive button presses #1

likethemammal opened this issue Jul 9, 2015 · 1 comment

Comments

@likethemammal
Copy link
Owner

The way the button pressed is written now, the button on fires if it was pressed completely (to value 1.0) and then released. This should be given more lenience.

There should also be a way of telling if a button is being held, and if multiple buttons are being pressed/held.

  • Pressed
    • On keyup, if not held
  • Held
    • On keydown, after 50ms delay
@likethemammal
Copy link
Owner Author

The trouble with this, is that allowing presses below the value of 1 means controllers with "noisy" buttons will count as presses. By noisy buttons, I mean when not being held, the button's pressed value will fluctuate between 0 and 1. This is likely due to the triggers in the buttons becoming inaccurate over time.

Can't think of a compromise at the moment..

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

1 participant