-
Notifications
You must be signed in to change notification settings - Fork 323
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
Dual rotary encoder support #879
Dual rotary encoder support #879
Conversation
* Currently only maps to Gamepad-related items (analog sticks and triggers + d-pad) and keeps those values within range (no overflowing) * The pulses per revolution can be customized, but currently untested beyond 24PPR
…zero, no snapback.
Fixed issue where min/max ranges were only based on the first encoder options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Works fine on my testing with a 20 PPR, 600 PPR is pending as we are not sure if its possible yet.
www/src/Addons/Rotary.tsx
Outdated
error={errors.encoderOnePPR} | ||
isInvalid={errors.encoderOnePPR} | ||
onChange={handleChange} | ||
min={24} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's knock this down to 20 for 20 PPRs
Changed Multiplier to numeric field and range to 0.10-200x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
Added early support for dual quadrature rotary encoders