Unmapped inputs: not layer 3
Mapping:
“Trigger”->layer 3, stick+hold
then
layer_state 0x00000008 bitwise_and not not
is used to press Alt key
Back/Forward is used to press tab/shift+tab key
This way I can move windows in alt+tab task viewer.
The probem is I have to use “Trigger” again to exit layer 3. (Trigger=register 3)
Can I do it with other key, like mouse click to exit layer 3 ?
You can implement it like this (let’s say the left button is the sticky trigger and the right button will deactivate it):
/* either already active */
1 recall
/* or trigger just pressed */
0x00090001 input_state_binary
0x00090001 prev_input_state_binary not mul
bitwise_or
/* but deactivate whenever right button pressed */
0x00090002 input_state_binary not mul
1 store
If you want the original trigger to also deactivate it when pressed again, just include the appropriate condition in the “deactivate” part like this:
/* either already active */
1 recall
/* or trigger just pressed */
0x00090001 input_state_binary
0x00090001 prev_input_state_binary not mul
bitwise_or
/* but deactivate whenever right button pressed */
0x00090002 input_state_binary not mul
/* or original trigger pressed again */
1 recall
0x00090001 input_state_binary mul
0x00090001 prev_input_state_binary not mul
not mul
1 store