示例#1
0
func (osx *osxSystemObject) HideCursor(hide bool) {
	if hide {
		C.LockCursor(1)
		C.HideCursor(1)
	} else {
		C.LockCursor(0)
		C.HideCursor(0)
	}
}
示例#2
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)
	}
}