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

Question: USB HID Keyboard scan codes / ascii #25

Closed
tobearlabs opened this issue Sep 9, 2019 · 2 comments
Closed

Question: USB HID Keyboard scan codes / ascii #25

tobearlabs opened this issue Sep 9, 2019 · 2 comments

Comments

@tobearlabs
Copy link

Thanks for this nice golang package. I use it to connect to a second usb keyboard. I receive the bytes from the connected keyboard representing the scancodes. (like 4 for "a").

Do u know an easy way to map/convert the incoming scancodes to runes or characters to receive a string in the end (even using the current operating system keyboard layout). I have a loop reading all inputs only from the second keyboard, which works fine, until enter is pressed. But now i have only the "scancodes" but need to get an ascii string.

Thanks in advance.

@fimdomeio
Copy link

@holiman
Copy link
Collaborator

holiman commented Feb 7, 2024

Answered

@holiman holiman closed this as completed Feb 7, 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

3 participants