Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Cycle during Pause or Delay in order to tap/double tap #54

Open
spanktastic2120 opened this issue Sep 19, 2016 · 3 comments
Open

Cycle during Pause or Delay in order to tap/double tap #54

spanktastic2120 opened this issue Sep 19, 2016 · 3 comments

Comments

@spanktastic2120
Copy link

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.

@jsbackus
Copy link
Member

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!

@spanktastic2120
Copy link
Author

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.

@edupln
Copy link

edupln commented Apr 26, 2020

good morning, someone found a way to double tap? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants