-
Notifications
You must be signed in to change notification settings - Fork 177
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
config: Allow m:*
to specify all mouse ids at once
#842
Conversation
i would like to add tests for this, but the test suite fails for me locally even without any changes :/ so it would be kind of difficult for me to make sure my new test passes.
|
Should a mention be made in the manpage? |
Previously, each mouse input device had to be specified explicitly in the config file. Now, all mice can be specified at once using `m:*`. To avoid backwards compatibility issues, `*` retains its existing meaning of "all keyboard devices". To avoid capturing our own mouse output, the virtual pointer device is now marked as virtual (previously only the virtual keyboard was marked as virtual).
f25f59c
to
54bc764
Compare
good call! done :) |
Apologies for the delay. I had earmarked this for reply and have not had a chance to address it. Can you elaborate on the use case? Mouse support is currently highly experimental (many things don't work properly), which is why |
i like my configuration files to be portable across machines. not having a wildcard means that either my config is specific to the exact hardware plugged in, or i have to do runtime detection in my install script. i understand that mouse support is experimental, but, well, no one has to use the new wildcard. i think keeping the existing notice that mouses might break is enough, i don’t think banning mouse wildcards would discourage someone who’s already decided they want this. |
Real portability is not achievable by dint of the fact that mouse functionality will break at least 50% of the time. If you just copy a config containing this wildcard, it has the potential to render the machine unusable. The user should be explicitly whitelisting mice which are known to work. |
Previously, each mouse input device had to be specified explicitly in the config file. Now, all mice can be specified at once using
m:*
. To avoid backwards compatibility issues,*
retains its existing meaning of "all keyboard devices".To avoid capturing our own mouse output, the virtual pointer device is now marked as virtual (previously only the virtual keyboard was marked as virtual).