Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.
This repository was 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

Description

@spanktastic2120

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.

Activity

  1. jsbackus commented on Sep 24, 2016

    @jsbackus
    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!

  2. spanktastic2120 commented on Sep 28, 2016

    @spanktastic2120
    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.

  3. edupln commented on Apr 26, 2020

    @edupln

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions