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

Support for KEY_PROGs #32

Open
dragonnn opened this issue Dec 25, 2020 · 0 comments
Open

Support for KEY_PROGs #32

dragonnn opened this issue Dec 25, 2020 · 0 comments

Comments

@dragonnn
Copy link

dragonnn commented Dec 25, 2020

Wanted ask if you can add support for KEY_PROG1,2,3,4?
I am creating an issue because I am not sure how would that work on Windows/MacOS, on Linux that is straight forward, only need to add them to the Keycode enum and too kernel_key_to_keycode
For me it would be perfectly fine to have those keys only working on Linux, I am working on a program for doing some power management on my laptop and it has two nice keys dedicated to it with emit KEY_PROG1 and KEY_PROG2.

Would be fine to add those keys but mark them with #[cfg(target_os = "linux")], in this way when someone would try to use them on MacOS/Windows it would give a compiler error?

Of course is someone finds what codes are for those keys on Windows/MacOS then they could be add too, but I am even not sure if they exist on those systems.

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