Click is not part of double click

10 posts / 0 new
Last post
Mike
Offline
Last seen: 1 month 2 weeks ago
Joined: 27 Jan 2011 - 22:34
Click is not part of double click

Hey,
When I get mouseUp or mouseDown calls on my Component, is there any way to determine that these are most likely not a part of a double click?
I suppose I can do that with timers etc..., but is there a built-in way?

Thanks!

[Insert signature here]

jules
Online
Last seen: 3 min 5 sec ago
Joined: 29 Apr 2013 - 18:37
Re: Click is not part of double click

Until operating systems provide an API for predicting the future, the only way is to use a timer. Obviously that'll delay your response time for a single-click, which is why the mouse methods don't attempt to do the job for you.

TheVinn
Offline
Last seen: 2 months 2 weeks ago
Joined: 29 Aug 2009 - 11:31
Re: Click is not part of double click

jules wrote:
Until operating systems provide an API for predicting the future...

If you're really interested in this, you can look in to the endochronic properties of resublimated thiotimoline.

jrlanglois
Offline
Last seen: 8 hours 27 min ago
Joined: 12 Aug 2011 - 17:54
Re: Click is not part of double click

Quote:
If you're really interested in this, you can look in to the endochronic properties of resublimated thiotimoline.

Is there a library out for that yet?

[Visual Studio 2013] [Xcode 5.1.1]
[latest JUCE tip] [CodeTools]

TheVinn
Offline
Last seen: 2 months 2 weeks ago
Joined: 29 Aug 2009 - 11:31
Re: Click is not part of double click

jrlanglois wrote:
Is there a library out for that yet?

It's a research paper, you'll have to look it up.

jrlanglois
Offline
Last seen: 8 hours 27 min ago
Joined: 12 Aug 2011 - 17:54
Re: Click is not part of double click

I know what it is, was only kidding. :)

[Visual Studio 2013] [Xcode 5.1.1]
[latest JUCE tip] [CodeTools]

Mike
Offline
Last seen: 1 month 2 weeks ago
Joined: 27 Jan 2011 - 22:34
Re: Click is not part of double click

jrlanglois wrote:
Quote:
If you're really interested in this, you can look in to the endochronic properties of resublimated thiotimoline.

Is there a library out for that yet?


Yes it is. Released 15 years from now.

[Insert signature here]

AaronLeese
AaronLeese's picture
Offline
Last seen: 1 week 5 days ago
Joined: 5 Feb 2009 - 17:52
Re: Click is not part of double click

What do we want ... time travel!
When do we want it .... irrelevant!

Aaron Leese
Stagecraft Software
-= new ways for DJs =-
Synths • Plugs • Turntablism / DJ Tech

Alatar
Offline
Last seen: 1 month 3 weeks ago
Joined: 29 Jan 2012 - 09:44
Re: Click is not part of double click

Steven Hawking recently made an experiment.
He invited all time-travellers over to his house for coffee and cake.

Unfortunately, nobody came ;-)

TheVinn
Offline
Last seen: 2 months 2 weeks ago
Joined: 29 Aug 2009 - 11:31
Re: Click is not part of double click

If we're going to get serious about this "issue" then we should solve the entire class of related problems:

Click is not part of double click,
Click is not part of triple click,
Click is not part of quadruple click,

generalized to:

Click is not part of "N click" combination

where N can be suitably large (but finite).