From e1e1198b7a120eba7cfdb740210d20b4bd0175b5 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sat, 27 Jul 2024 08:46:48 -0700 Subject: [PATCH] add links to MS/Apple documentation --- internal/driver/glfw/driver_darwin.m | 3 ++- internal/driver/glfw/driver_windows.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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