You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To detect when the right mouse button is clicked use subscribe on mouse down. Right click is button 1
app.SubscribeID(window.OnMouseDown, a, func(evname string, ev interface{}) {
if me, found := ev.(*window.MouseEvent); found {
if me.Button = 1 {
fmt.Println("RIght mouse clicked")
}
}
})
app.SubscribeID(window.OnMouseDown, a, func(evname string, ev interface{}) {
if me, found := ev.(*window.MouseEvent); found {
if me.Button = 1 {
fmt.Println("RIght mouse clicked")
}
}
})
The newly added content will be overwritten. Right click function?
The text was updated successfully, but these errors were encountered: