-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
if ev.Kind == hook.MouseDown && ev.Button == 4 {
fmt.Println("detect 4 down")
if err := md.sendEvent(signal.MouseSide4Down); err != nil {
log.Printf("send: %v", err)
}
} else if ev.Kind == hook.MouseUp && ev.Button == 4 {
fmt.Println("detect 4 up"")
if err := md.sendEvent(signal.MouseSide4Up); err != nil {
log.Printf("send : %v", err)
}
}
No matter if mouse button 4 is pressed or released, it triggers the mousedown event.
system macos26
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels