Versions in this module Expand all Collapse all v0 v0.1.2 Oct 28, 2025 Changes in this version + const CharUndefined + const FakeEvent + const HookDisabled + const HookEnabled + const KeyDown + const KeyHold + const KeyUp + const MouseDown + const MouseDrag + const MouseHold + const MouseMove + const MouseUp + const MouseWheel + const Version + const WheelDown + const WheelUp + var Keycode = keycode.Keycode + var MouseMap = keycode.MouseMap + var Special = keycode.Special + func AddEvent(key string) bool + func AddEvents(key string, arr ...string) bool + func AddMouse(btn string, x ...int16) bool + func AddMousePos(x, y int16) bool + func End() + func KeychartoRawcode(kc string) uint16 + func Process(evChan <-chan Event) (out chan bool) + func RawcodetoKeychar(r uint16) string + func Register(when uint8, cmds []string, cb func(Event)) + func Start(tm ...int) chan Event + func StopEvent() + type Event struct + Amount uint16 + Button uint16 + Clicks uint16 + Direction uint8 + Keychar rune + Keycode uint16 + Kind uint8 + Mask uint16 + Rawcode uint16 + Reserved uint16 + Rotation int32 + When time.Time + X int16 + Y int16 + func (e Event) String() string