mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:01:52 +08:00
12 lines
216 B
Go
12 lines
216 B
Go
//go:build windows
|
|
|
|
package win32
|
|
|
|
import "unsafe"
|
|
|
|
func GetCursorPos() (x, y int, ok bool) {
|
|
pt := POINT{}
|
|
ret, _, _ := procGetCursorPos.Call(uintptr(unsafe.Pointer(&pt)))
|
|
return int(pt.X), int(pt.Y), ret != 0
|
|
}
|