func (osx *osxSystemObject) HideCursor(hide bool) { if hide { C.LockCursor(1) C.HideCursor(1) } else { C.LockCursor(0) C.HideCursor(0) } }
func (osx *osxSystemObject) HideCursor(hide bool) { globalLock.Lock() defer globalLock.Unlock() if hide { C.LockCursor(1) C.HideCursor(1) } else { C.LockCursor(0) C.HideCursor(0) } }