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

feat(hid): Add KConfig option for higher NKRO usages #2024

Merged
merged 4 commits into from
Dec 4, 2023

Conversation

ReFil
Copy link
Contributor

@ReFil ReFil commented Nov 15, 2023

By default, the maximum NKRO usage is set to maximize compatibility, but some keys don't work. This adds the ability to use those extended keys, at the cost of compatibility (android doesn't like the higher usage range, it seems). The chosen max was largely arbitrary, although it needs to be a multiple of 8 - 1 (otherwise windows will refuse to enumerate it properly, reporting "driver error"), For this reason I made it a configurable bool rather than a variable value. There's also no reason to have it variable across a wide range, a low and a high value seem like a good compromise

This fix addresses #1460 and is linked to #1236

By default the maximum NKRO usage is set to maximise compatibility, but some keys dont work, this adds the ability to use those extended keys, at the cost of compatibiltity
@ReFil ReFil requested a review from a team as a code owner November 15, 2023 21:25
Copy link
Contributor

@caksoylar caksoylar left a comment

Choose a reason for hiding this comment

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

The docs LGTM other than one improvement suggestion.

docs/docs/config/system.md Outdated Show resolved Hide resolved
@caksoylar caksoylar added enhancement New feature or request hid labels Nov 23, 2023
@petejohanson petejohanson self-assigned this Nov 28, 2023
Copy link
Contributor

@petejohanson petejohanson left a comment

Choose a reason for hiding this comment

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

One comment on the Kconfig details.

app/Kconfig Outdated Show resolved Hide resolved
Co-authored-by: Pete Johanson <[email protected]>
Copy link
Contributor

@petejohanson petejohanson left a comment

Choose a reason for hiding this comment

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

Couple minor things I missed the first time.

app/Kconfig Outdated Show resolved Hide resolved
app/Kconfig Show resolved Hide resolved
@petejohanson petejohanson merged commit 9bacaff into zmkfirmware:main Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hid
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants