Any chance of a “saved” twist, so as to avoid a TWIST_RIGHT/LEFT preventing ever getting to a regular twist event?
Maybe, but the base prop doesn’t have left/right twists, just EVENT_TWIST right now, so I’m not sure how that is an actual problem?
I assume the bool would return true if a twist was detected?
I think that would be ok, but why would you need that?
if (DetectTwist()) {
// Abort the saved twist, cancel the timer. We have a back-and-forth twisting gesture.
saved_twist_ = 0;
twist_timer_.stop();
}
Wouldn’t it be easier to do that in Event2() ?
I could, of course you’re right. “Easier” is debatable. If it means not disturbing prob_base, then yes.
It’s just that I have 5 cases that would need it then. This was one central location, but I could do it in Event2 if you prefer, sure.
How about Event() ?
Are you could do it in the beginning of Event2(), before the main switch.
I don’t want to drag this out in this thread. I don’t have regular Event() in the prop, and not sure how that is better/helps/makes a difference.
Could you gather all this twist talk into a new thread? I didn’t realize it would turn into multiple post discussion.
Moved to new thread.
Thank you.
ah. Now that’s super simple. Great, thanks!
Working, thanks.
Out of curiosity, what is TWIST_CLOSE supposed to be?
It’s a separator for the gesture stream, meaning that the user isn’t twisting anymore.