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

Safe way to convert an u8 to a Vk #11

Open
kzagar opened this issue Jan 30, 2024 · 0 comments
Open

Safe way to convert an u8 to a Vk #11

kzagar opened this issue Jan 30, 2024 · 0 comments

Comments

@kzagar
Copy link

kzagar commented Jan 30, 2024

I suggest adding a safe way to convert an u8 value to a Vk, by being able to verify if a given u8 value corresponds to a virtual key, i.e., if there is an enum in Vk that maps to that u8 value.

Without such mechanism, there is no robust way to convert an u8 value (as received e.g., from a Windows hook) to a Vk for further use.

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