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

Treat devices with keys as keyboards #21

Merged
merged 1 commit into from
May 3, 2021

Conversation

TAAPArthur
Copy link
Contributor

Some keyboards have an absolute axis and would erroneously not be treated
as a keyboard. Now any device with keys would have the ID_INPUT_KEY
property set.

So I have a keyboard where the multimedia keys are treated as a separate input device. This device has a volume slider which apparently has an absolute axis. Given the mutual exclusion between devices with axis and keyboards the device was left unlabeled and unrecognized by X. The patch removes said exclusion.

So with this patch it is theoretically possible for a device to have both the keyboard property and some pointer property. Don't know what device that would be, but if it was a concern can just rearrange the if/else statement so that the keyboard check comes first

udev_device.c Outdated Show resolved Hide resolved
Some keyboards have an absolute axis and would erroneously not be treated
as a keyboard. Now any device with keys would have the ID_INPUT_KEY
property set.
@illiliti illiliti merged commit bbea6a6 into illiliti:master May 3, 2021
@illiliti
Copy link
Owner

illiliti commented May 3, 2021

I saw you have some trouble with hotplugging. Feel free to open an issue

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

Successfully merging this pull request may close these issues.

2 participants