github.com/AlpineAIO/wails/v2@v2.0.0-beta.32.0.20240505041856-1047a8fa5fef/internal/platform/win32/cursor.go (about) 1 //go:build windows 2 3 package win32 4 5 import "unsafe" 6 7 func GetCursorPos() (x, y int, ok bool) { 8 pt := POINT{} 9 ret, _, _ := procGetCursorPos.Call(uintptr(unsafe.Pointer(&pt))) 10 return int(pt.X), int(pt.Y), ret != 0 11 }