Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long Button Press #7

Open
wunditta opened this issue Sep 24, 2023 · 0 comments
Open

Long Button Press #7

wunditta opened this issue Sep 24, 2023 · 0 comments
Labels
enhancement New feature or request help needed Help is needed to solve this issue

Comments

@wunditta
Copy link
Owner

wunditta commented Sep 24, 2023

Map a different function to a button, activated when pressed long (e.g. > 0.5 secs; configurable).

ToDo: in Client

  • Add variable at top (besides LastParam) "LastButton"
  • In ACTIONS and "Reset" blocks: if value>BUTTON_ON then LastButton=param elseif LastButton=param; set timeout then if (timeout thingy)...action short... else ... action long... end end
  • Alternatively without "LastButton" (should work too): if value>BUTTON_ON then set timeout else if (timeout thingy)...action short... else ... action long... end end

Note: this of course changes the button behavior as the function is not performed on PRESSING the button, but on RELEASING it... does this feel ok?

@wunditta wunditta added the enhancement New feature or request label Sep 24, 2023
@wunditta wunditta added the help needed Help is needed to solve this issue label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help needed Help is needed to solve this issue
Projects
None yet
Development

No branches or pull requests

1 participant