Click is not part of double click

10 posts / 0 new
Last post
Mike
Offline
Last seen: 5 days 21 hours 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
Offline
Last seen: 8 hours 56 min 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: 3 months 1 week 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: 7 hours 57 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 2012] [Xcode 5.0.2] [NetBeans 7.3]
[latest JUCE tip] [C++ File Tools] [FriendlyBinaryBuilder]

TheVinn
Offline
Last seen: 3 months 1 week 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: 7 hours 57 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 2012] [Xcode 5.0.2] [NetBeans 7.3]
[latest JUCE tip] [C++ File Tools] [FriendlyBinaryBuilder]

Mike
Offline
Last seen: 5 days 21 hours 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
Offline
Last seen: 1 week 1 day 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
StagecraftSoftware.com

Alatar
Offline
Last seen: 2 weeks 2 days 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: 3 months 1 week 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).