Skip to content

Commit

Permalink
add links to MS/Apple documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jul 27, 2024
1 parent b0001ba commit e1e1198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/driver/glfw/driver_darwin.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void setDisableDisplaySleep(BOOL disable) {
}
}

// https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc
double doubleClickInterval() {
return [NSEvent doubleClickInterval];
}
}
1 change: 1 addition & 0 deletions internal/driver/glfw/driver_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1e1198

Please sign in to comment.