mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update Unicode Type args
This commit is contained in:
parent
16e0808dbd
commit
60ddc20e02
6
key.go
6
key.go
@ -591,8 +591,12 @@ func CharCodeAt(s string, n int) rune {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnicodeType tap uint32 unicode
|
// UnicodeType tap uint32 unicode
|
||||||
func UnicodeType(str uint32, pid int) {
|
func UnicodeType(str uint32, args ...int) {
|
||||||
cstr := C.uint(str)
|
cstr := C.uint(str)
|
||||||
|
pid := 0
|
||||||
|
if len(args) > 0 {
|
||||||
|
pid = args[0]
|
||||||
|
}
|
||||||
C.unicodeType(cstr, C.int32_t(pid))
|
C.unicodeType(cstr, C.int32_t(pid))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user