I have a four-button mouse that jfedor helped me configure so that tapping the Back button activates a drag-scroll layer but tapping either the Back button again or left mouse button will dismiss the drag-scroll layer. I was trying to figure out how to get a hold behavior on that Back button as well. Below is the drag-scroll expression:
1 recall
dup not
0x00090004 prev_input_state_binary mul
0x00090004 input_state_binary not mul
bitwise_or
0x00090001 prev_input_state_binary
0x00090001 input_state_binary not mul
not mul
1 recall
0x00090004 prev_input_state_binary mul
0x00090004 input_state_binary not mul
not mul
1 store
What I was thinking was I’d like that behavior to stay the same but if I hold 90004 and tap 90001 then it does not activate the drag-scroll layer but rather activates the left mouse button in a sticky mode, then tapping 90001 again would dismiss the sticky LMB. Unfortunately, I cannot wrap my head around these expressions and there are only a couple of examples of chording behavior that I can find. I don’t really even understand how the expression above works. Can anybody offer any direction or advice?
Thank you!