Documentation
¶
Index ¶
- Constants
- type Handler
- type InputDevice
- type KeyState
- type 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
Constants ¶
View Source
const ( KeyPressed = 1 KeyReleased = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler manages multiple input devices
func (*Handler) GetDevices ¶
func (m *Handler) GetDevices() []*InputDevice
GetDevices returns all input devices
func (*Handler) ProcessEvents ¶
func (m *Handler) ProcessEvents(virtualKeyboard *golibevdev.UInputDev, modeManager *bus.Impl)
ProcessEvents starts processing events from all devices
type InputDevice ¶
type InputDevice struct {
Device *golibevdev.InputDev
Name string
Path string
}
InputDevice represents a grabbed input device
type Modifier ¶
type Modifier struct {
// contains filtered or unexported fields
}
func NewModifier ¶
func NewModifier() *Modifier
func (*Modifier) IsAnyModifierPressed ¶
func (*Modifier) IsModifier ¶
func (m *Modifier) IsModifier(code golibevdev.KeyEventCode) bool
func (*Modifier) IsPressed ¶
func (m *Modifier) IsPressed(code golibevdev.KeyEventCode) bool
func (*Modifier) IsReleased ¶
func (m *Modifier) IsReleased(code golibevdev.KeyEventCode) bool
func (*Modifier) Press ¶
func (m *Modifier) Press(code golibevdev.KeyEventCode)
func (*Modifier) Release ¶
func (m *Modifier) Release(code golibevdev.KeyEventCode)
func (*Modifier) ShouldPassThrough ¶
func (m *Modifier) ShouldPassThrough(code golibevdev.KeyEventCode) bool
type ModifierState ¶
type ModifierState struct {
// contains filtered or unexported fields
}
func (*ModifierState) IsPressed ¶
func (m *ModifierState) IsPressed() bool
func (*ModifierState) IsReleased ¶
func (m *ModifierState) IsReleased() bool
func (*ModifierState) Press ¶
func (m *ModifierState) Press()
func (*ModifierState) Release ¶
func (m *ModifierState) Release()
Click to show internal directories.
Click to hide internal directories.