diff --git a/internal/driver/glfw/driver_darwin.m b/internal/driver/glfw/driver_darwin.m index 560c99be1c..884aae3b79 100644 --- a/internal/driver/glfw/driver_darwin.m +++ b/internal/driver/glfw/driver_darwin.m @@ -28,6 +28,7 @@ void setDisableDisplaySleep(BOOL disable) { } } +// https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc double doubleClickInterval() { return [NSEvent doubleClickInterval]; -} \ No newline at end of file +} diff --git a/internal/driver/glfw/driver_windows.go b/internal/driver/glfw/driver_windows.go index ce9fa7f12b..2f60018e1f 100644 --- a/internal/driver/glfw/driver_windows.go +++ b/internal/driver/glfw/driver_windows.go @@ -71,6 +71,7 @@ func setDisableScreenBlank(disable bool) { const defaultDoubleTapDelay = 300 * time.Millisecond func (g *gLDriver) DoubleTapDelay() time.Duration { + // https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdoubleclicktime user32 := syscall.NewLazyDLL("user32.dll") if user32 == nil { return defaultDoubleTapDelay