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

Rewrite VirtualKey mapping to correctly handle non-translate #86

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

Sainan
Copy link
Contributor

@Sainan Sainan commented Oct 26, 2024

This fixes #78. As explained in the issue, MapVirtualKeyA always uses the current layout, so to truly have the intended effect, the mapping needs to be hardcoded (we could load the US layout to use with MapVirtualKeyExA but it would have undesirable side-effects).

I did end up mapping directly between HID page 7 usage id and VirtualKey instead of using PS/2 scancodes as a middleman.

@simon-wh simon-wh merged commit bc31f47 into WootingKb:develop Oct 30, 2024
1 check passed
@Sainan Sainan deleted the vk-fix branch October 30, 2024 15:27
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.

VirtualKey mode does the same as VirtualKeyTranslate
2 participants