Double Click time from OS

Hi folks,

i am building a standalone plugin and i was looking on how to set the timeout for double clicks to the value set by the user in the OS. Currently it is set to 400ms in juce and i found no where any code which does that. I want the app to adapt to what the user chose in the OS settings.

Any ideas?

Best,

Thomas

On Windows you can call

And then call the static function juce::MouseEvent:: setDoubleClickTimeout

I’m sure there is a similar method for macOS

I think JUCE should read the OS double click timeout and use that instead of hardcoding 400ms.

3 Likes

macOS has doubleClickInterval in AppKit:

Thanks guys, that helps.

I believe this should go in the section for feature requests, adapting to the setting in the OS looks like a sensible choice to me

2 Likes