You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
It seems that button presses are not registered during a pause or delay period. The wiki's example for a "press and double press" Release 0.01 -> Pause 0.00 -> Release 0.49 -> E -> Cycle -> Release 0.01 -> R
is actually "double press or hold" as 'E' is not sent unless the button is released after 0.49s. In order to determine if a button was pressed once the program would need to wait and see if a second press happens, like differentiating between a click or double click. I cant seem to accomplish this using either Pause or Delay, both seem to ignore input until the specified period ends.
I tried chaining multiple small Pauses together in hopes that i could get the second tap to register between them but that does not work. I also tried using Press Time and [NO KEY] to produce a wait period, but i still cant cycle during that window.
As an example, I would expect Release 0.01 -> Pause 0.50 -> T -> Cycle -> Release 0.01 -> D
to produce 'T' on a single tap and 'D' on a double tap.
Should i be doing tap/double tap some other way? It seems like this sort of thing is exactly what cycles were meant for.
The text was updated successfully, but these errors were encountered:
Hi! Sorry for the late response. I'm still coming up to speed on the advanced assignments, so the short answer is: I dunno. I'll look into it more and get back to you once I grok how it works. Sorry!
No worries! I appreciate getting any response at all. I poked through the code myself to try and identify where Cycle gets iterated and why during a Pause or Delay it wouldn't take input but i couldn't grok.
It seems that button presses are not registered during a pause or delay period. The wiki's example for a "press and double press"
Release 0.01 -> Pause 0.00 -> Release 0.49 -> E -> Cycle -> Release 0.01 -> R
is actually "double press or hold" as 'E' is not sent unless the button is released after 0.49s. In order to determine if a button was pressed once the program would need to wait and see if a second press happens, like differentiating between a click or double click. I cant seem to accomplish this using either Pause or Delay, both seem to ignore input until the specified period ends.
I tried chaining multiple small Pauses together in hopes that i could get the second tap to register between them but that does not work. I also tried using Press Time and [NO KEY] to produce a wait period, but i still cant cycle during that window.
As an example, I would expect
Release 0.01 -> Pause 0.50 -> T -> Cycle -> Release 0.01 -> D
to produce 'T' on a single tap and 'D' on a double tap.
Should i be doing tap/double tap some other way? It seems like this sort of thing is exactly what cycles were meant for.
The text was updated successfully, but these errors were encountered: