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

Add support for the detection of media keys #32

Open
Gum-Joe opened this issue Aug 3, 2019 · 0 comments
Open

Add support for the detection of media keys #32

Gum-Joe opened this issue Aug 3, 2019 · 0 comments
Labels
enhancement New feature or request v1 Features and issues for v1

Comments

@Gum-Joe
Copy link
Owner

Gum-Joe commented Aug 3, 2019

Up until now, I thought media keys weren't supported by 2Keys, as practical testing showed they weren't detected. However, as it turns out, media keys are logged to a separate file in /dev/input:

$ ls /dev/input/by-id/ 
usb-Logitech_Gaming_Keyboard_G810_166A37573236-event-if01
usb-Logitech_Gaming_Keyboard_G810_166A37573236-event-kbd
usb-Logitech_Gaming_Keyboard_G810_166A37573236-if01-event-kbd

The 2nd one in the list is what 2Keys watches, and this doesn't show any media keys. However, if we watch the first file, the media keys show up (but none of the other keys like the letters, Ctrl, etc)

Implementing this may be a challenge since 2 'keyboards' now have to be watched. Approaches include:

  1. Async python, which is a pain error handling wise
  2. Run 2 2Keys detectors (little worried about CPU usage with many keyboards)
  3. Multithreading (don't know how to do this in Python)

Will likely require #5 to be completed first.

@Gum-Joe Gum-Joe added the enhancement New feature or request label Aug 3, 2019
@Gum-Joe Gum-Joe added the v1 Features and issues for v1 label Jun 9, 2020
@Gum-Joe Gum-Joe added this to the v1 Alpha 1 (MS1) milestone Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v1 Features and issues for v1
Projects
None yet
Development

No branches or pull requests

1 participant