-
Notifications
You must be signed in to change notification settings - Fork 395
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
Accumulate bytes to extend rule processing #2145
Labels
Comments
This does seem like a reasonable idea. Solaar already does something similar for the THUMB_WHEEL feature. |
A problem with your rules is that if the thumb wheel message has a displacement of more than 10 only 5 will be used up immediately. The next notification may then use another 5, and so on. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the current implementation, each notification rule is processed independently without a memory to allow for fine-tuned operations. For instance, adjusting the volume using the thumbwheel on the MX Master 2S mouse may result in excessively fast speed. To address this limitation, it would be beneficial to introduce a counter for byte sequences, enabling deferred actions once the counter surpasses a certain threshold.
A proposed configuration could look like this:
In this configuration, a counter is represented as a dictionary with a string key mapped to a signed integer value. The following basic operations can be performed:
The text was updated successfully, but these errors were encountered: