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

Dual rotary encoder support #879

Merged

Conversation

mikepparks
Copy link
Contributor

Added early support for dual quadrature rotary encoders

  • 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

* 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
Fixed issue where min/max ranges were only based on the first encoder options.
Copy link
Contributor

@arntsonl arntsonl left a 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.

error={errors.encoderOnePPR}
isInvalid={errors.encoderOnePPR}
onChange={handleChange}
min={24}
Copy link
Contributor

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
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@arntsonl arntsonl merged commit 5288682 into OpenStickCommunity:main Mar 19, 2024
32 checks passed
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants