Versions in this module Expand all Collapse all v0 v0.0.2 Apr 11, 2025 v0.0.1 Mar 26, 2025 Changes in this version + const KeyPressed + const KeyReleased + type Handler struct + func New() *Handler + func (m *Handler) AddDevice(name, path string) error + func (m *Handler) Close() + func (m *Handler) GetDevices() []*InputDevice + func (m *Handler) ProcessEvents(virtualKeyboard *golibevdev.UInputDev, modeManager *bus.Impl) + func (m *Handler) Wait() + type InputDevice struct + Device *golibevdev.InputDev + Name string + Path string + type KeyState struct + Time time.Time + type Modifier struct + func NewModifier() *Modifier + func (m *Modifier) IsAnyModifierPressed() bool + func (m *Modifier) IsModifier(code golibevdev.KeyEventCode) bool + func (m *Modifier) IsPressed(code golibevdev.KeyEventCode) bool + func (m *Modifier) IsReleased(code golibevdev.KeyEventCode) bool + func (m *Modifier) Press(code golibevdev.KeyEventCode) + func (m *Modifier) Release(code golibevdev.KeyEventCode) + func (m *Modifier) ShouldPassThrough(code golibevdev.KeyEventCode) bool + type ModifierState struct + func (m *ModifierState) IsPressed() bool + func (m *ModifierState) IsReleased() bool + func (m *ModifierState) Press() + func (m *ModifierState) Release()