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

Multiple Detection #30

Closed
indianpoptart opened this issue Jul 13, 2017 · 4 comments
Closed

Multiple Detection #30

indianpoptart opened this issue Jul 13, 2017 · 4 comments

Comments

@indianpoptart
Copy link

Is there a way to detect multiple consecutive motions? Such as detecting two chops in ChopListener, as opposed to a singular chop.

Thanks

@indianpoptart
Copy link
Author

Additional info:
Would I have to just make another listener inside onChop? or is that a dumb idea. Thanks

@nisrulz
Copy link
Owner

nisrulz commented Jul 13, 2017

Well you can count the number of times a chop event is triggered. Its not a dumb idea, but since its not built into the lib as of now, doing it that way should work. It isn't the best solution though.

I am just wondering how much of a use case there is to put a counter in the lib itself. The thing is, all these events are time based. So the counter eventually would need to reset if the chop event didnot happen within a certain time duration.

Providing it internal to lib is possible and I can add it to the upcoming features to develop, if its important enough.

Let me know your thoughts.

@indianpoptart
Copy link
Author

I can probably just implement a counter, didn't even think of that :)

You don't have to add it to the lib, up to you though. Probably easier to add a little not to the readme or wiki.

Thanks a bunch!

@nisrulz
Copy link
Owner

nisrulz commented Jul 14, 2017

I guess this solves your issue at hand. I will open a new issue if I see it fit to include it in the future.

Closing the issue for now.

@nisrulz nisrulz closed this as completed Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants