
League of Extraordinary Multiboxers
Posts: 585
Joined: Wed Sep 19, 2012 7:37 am
Location: Omaha, NE
Keypress Detection when Mapped Key is Turned Off

Mapped Keys can be set up to run off a single Keypress with:
Keypress Down: Mapped Key Step 1
Keypress Up: Mapped Key Step 2
I believe the User would always want the step assigned to the Keypress Down to execute first. That's the point of setting up a Mapped Key in this manner.
The scenario in question occurs if the Mapped Key is turned off when the Keypress occurs. Obviously the Step is not executed because the Mapped Key is turned off, but the key *IS* still physically pressed down. Subsequently, the Mapped Key turns back on. At which point, when the key is released the generic "on press or release" goes into effect, and activates Step 2. Step 1 is bypassed. Unfortunately, this throws the Mapped Key Steps out of order and the Mapped Key proceeds to execute backwards:
Keypress Down: Mapped Key Step 2
Keypress Up: Mapped Key Step 1
Now, my initial reaction was if the Mapped Key is turned off, it should block the Keypress entirely. With that said, I don't have enough insight to know what impact this change may have or if it's even possible. Specifically regarding Mapped Keys with odd numbers of steps where "Do Not Advanced" is used to keep the Mapped Key from wrapping around prematurely:
Keypress Down: Step 1
Keypress Up: Step 2
Keypress Down (Do Not Advance for X Seconds): Step 3
Keypress Up: No Step as it's blocked by the previous "Do Not Advance."
I can provide a case study if needed. I didn't want to confuse the issue by trying to sort out a particular chain of Mapped Keys.