Open rstanuwijaya opened 1 year ago
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. I'm not sure how to best solve this problem.
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: