Click is not part of double click

Discussion and support for general JUCE issues

Click is not part of double click

Postby Mike » Fri Jul 20, 2012 2:22 pm

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]
User avatar
Mike
JUCE UberWeenie
 
Posts: 164
Joined: Thu Jan 27, 2011 11:34 pm

Re: Click is not part of double click

Postby jules » Fri Jul 20, 2012 2:36 pm

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.
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Click is not part of double click

Postby TheVinn » Fri Jul 20, 2012 3:16 pm

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.
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Click is not part of double click

Postby jrlanglois » Fri Jul 20, 2012 4:42 pm

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 4.6] [x64 Ubuntu 12.10 - NetBeans 7.3]
[latest JUCE tip] [My JUCE Fork] [FriendlyBinaryBuilder]
User avatar
jrlanglois
JUCE UberWeenie
 
Posts: 575
Joined: Fri Aug 12, 2011 5:54 pm
Location: Ottawa, Ontario, Canada

Re: Click is not part of double click

Postby TheVinn » Fri Jul 20, 2012 4:59 pm

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


It's a research paper, you'll have to look it up.
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Click is not part of double click

Postby jrlanglois » Fri Jul 20, 2012 5:02 pm

I know what it is, was only kidding. :)
[Visual Studio 2012] [Xcode 4.6] [x64 Ubuntu 12.10 - NetBeans 7.3]
[latest JUCE tip] [My JUCE Fork] [FriendlyBinaryBuilder]
User avatar
jrlanglois
JUCE UberWeenie
 
Posts: 575
Joined: Fri Aug 12, 2011 5:54 pm
Location: Ottawa, Ontario, Canada

Re: Click is not part of double click

Postby Mike » Fri Jul 20, 2012 8:20 pm

jrlanglois wrote:
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]
User avatar
Mike
JUCE UberWeenie
 
Posts: 164
Joined: Thu Jan 27, 2011 11:34 pm

Re: Click is not part of double click

Postby aaronleese » Fri Jul 20, 2012 11:32 pm

What do we want ... time travel!
When do we want it .... irrelevant!
User avatar
aaronleese
JUCE UberWeenie
 
Posts: 282
Joined: Thu Feb 05, 2009 6:52 pm
Location: San Francisco, CA

Re: Click is not part of double click

Postby Alatar » Sun Jul 22, 2012 4:43 pm

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

Unfortunately, nobody came ;-)
Alatar
JUCE Geek
 
Posts: 29
Joined: Sun Jan 29, 2012 10:44 am
Location: Europe

Re: Click is not part of double click

Postby TheVinn » Sun Jul 22, 2012 5:50 pm

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).
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California


Return to General JUCE discussion

Who is online

Users browsing this forum: Anima, FirePlayer and 3 guests