Does HOLD always revert a modifier's state to zero when released?

Does HOLD always revert a modifier’s state to zero when released?

In my mapping, M4 = either 6 or 7 all of the time, so that I can get the LEDs on the level indicators to behave a certain way.

I need to map a button so that M4 = 1 when pressed and M4 = 7 when released. HOLD seems to always revert to zero when released. Is there any way to change that behaviour so that the modifier reverts to it’s prior state - in this case: M4 = 7?

One way is to add a release modifier is to set the add the modifier set it to reset then select invert. Then make it set to M4=1 by going to direct. The invert should still hold true. I read that its an easter egg or something that has been planned to be taken out but hasn’t so far.

Add modifier #4 / Type-button / check invert / Mode-direct / value-7

YES! Thank you very much. I would never have figured that out. What I did was -

  1. Add in Modifier 4, learn, set interaction mode to reset, then check invert, then set interaction mode to direct and set to value 7.
  2. Add in Modifier 4, learn, set interaction mode to direct and set to value 1.

Now, when I hold the button, M4 = 1, and when I release it, M4 = 7. Sweet!

Thanks again!

Yep there is few ways of doing it. What I wrote demands no reset and its just addition to hold modifier.

Thanks a lot - I had to set interaction mode to reset as well, and it works nicely.

You got something wrong there… I dont need to reset anything because inverted modifier directly switches value from 1 to 7 though.

Yeah okay, i see what you’re saying now. I just tried it and it worked without needing to select reset. That’s takes out a few more mouse clicks. Thanks!