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

Some keys don't get recognised correctly on some keyboard layouts. #1

Closed
Random-typ opened this issue Apr 8, 2024 · 0 comments
Closed
Assignees

Comments

@Random-typ
Copy link
Owner

Some keys dont get recognised correctly by the keylistener on some keyboard layouts.
I have found that on the german keyboard layout, the right alt key doesn't work correctly.
I haven't found keys that don't work on the US layout.

The keys dont get recognised correctly because the keylistener uses GetAsyncKeyState() to check if multiple keys are pressed at the same time., which needs virtual keycodes that are normally translated by MapVirtualKeyA(). This works most of the time but some keys are not translated correctly by MapVirtualKey() and null is returned.
Using MapVirtualKeyExA() instead of MapVirtualKeyA() did not make a difference.

@Random-typ Random-typ self-assigned this Apr 8, 2024
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