mirror of
https://github.com/robotn/gohook.git
synced 2025-04-28 16:50:15 +08:00
finished conversion table
This commit is contained in:
parent
a466e0bad6
commit
133a4afc02
8
hook.go
8
hook.go
@ -68,6 +68,14 @@ type Event struct {
|
|||||||
Direction uint8 `json:"direction"`
|
Direction uint8 `json:"direction"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func RawcodetoKeychar(r uint16) string {
|
||||||
|
return raw2key[r]
|
||||||
|
}
|
||||||
|
|
||||||
|
func KeychartoRawcode(kc string) uint16 {
|
||||||
|
return keytoraw[kc]
|
||||||
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ev = make(chan Event, 1024)
|
ev = make(chan Event, 1024)
|
||||||
asyncon = false
|
asyncon = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user