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

Three clicks detection #2

Open
SteFR opened this issue Jan 5, 2018 · 3 comments
Open

Three clicks detection #2

SteFR opened this issue Jan 5, 2018 · 3 comments

Comments

@SteFR
Copy link

SteFR commented Jan 5, 2018

Hello,

Very interesting library. Congratulations for the work.

I want to design a domotical central for my house's shutters. (13 shutters, 13 Up buttons and 13 Down buttons).

Idea :

  • Long press "mode" : the concerning shutter open (or close) the time of the press duration... then stops.

  • One click "mode" : the concerning shutter open (or close) totally !

  • Two clicks "mode" : all the floor’s shutters opens (or closes) totally !

  • What I miss is a three clicks "mode" : the whole house’s shutters opens (or closes) totally !

I tried to understand your program to modify it. But I'm not enough experienced to implement the "three clicks" functionality.

My questions :

  • Is it planned to implement this function ?

  • If not, do you have some tips to help me ?

Best regards,

Stéphane C.

@poelstra
Copy link
Owner

poelstra commented Jan 6, 2018

Thanks!

I do have triple-clicking (arbitrary number of clicks, actually) in mind for a future version, as I also need it for a future project.

It will be necessary to introduce a delay to signalling the double-click event to the user, and count the number of clicks in-between. I tried to quickly hack it in just now, but it doesn't seem to be possible to do so by changing just a line or two, so I'll have to look at it when I have more time later.

I'll keep this issue open to track its progress.

@DarkblooM-IO
Copy link

Any news about this?

@poelstra
Copy link
Owner

Nope, I (apparently :)) didn't need it yet...

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

No branches or pull requests

3 participants