How to get double click interval on MacOS

58 Views Asked by At

We're developing a Unity editor extension. For that we need to know the double click interval of the OS. On windows you can get this with an external call like so (how to get the double-click-time in WPF):

[DllImport("user32.dll")]
static extern uint GetDoubleClickTime();

This obviously doesn't work on MacOS. Is there something similar? We found the nsevent doubleClickInterval (https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval) which seems to be the equivalent on Mac, but how to call this from .NET?

Any hints are greatly appreciated! Thank you!

0

There are 0 best solutions below