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

Feature request: Hold while turning for faster increment/decrement #3

Open
clone45 opened this issue Aug 22, 2014 · 0 comments
Open

Comments

@clone45
Copy link

clone45 commented Aug 22, 2014

Hello,
Sometimes it's necessary to use a rotary encoder to enter fairly large numbers. Although acceleration helps, when the numbers get past 1000, it still takes forever. I've seen a feature (on the Nord Modular) where the values can be incremented or decremented faster if the rotary encoder's switch is pressed while turning the encoder. This would be a nice new feature to have.

Here's a hack of ClickEncoder.php, just to illustrate my request:

if (val < 0) {
  r -= 1 + accel;
  if(button == Held) r -= 100;
}
else if (val > 0) {
  r += 1 + accel;
  if(button == Held) r += 100;
}

Thanks for the great library,
Bret

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