Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// KeyPress represents a keyboard key press event
KeyPress *KeyPressEvent
// MouseClick represents a mouse click event
MouseClick *MouseClickEvent
// WindowFocus represents a window focus change event
WindowFocus *WindowFocusEvent
}
Event represents any type of event that can trigger an action
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
Impl processes events
func (*Impl) GetActiveWindowClass ¶
func (*Impl) ProcessEvent ¶
ProcessEvent processes an event through the current bus
func (*Impl) SetBeforeSendKeysPerSession ¶
func (m *Impl) SetBeforeSendKeysPerSession(fn func())
func (*Impl) UpdateWindowMonitor ¶ added in v0.0.2
type KeyPressEvent ¶
type KeyPressEvent struct {
Keys []golibevdev.KeyEventCode
Pressed bool // true for press, false for release
Repeated bool // true if key repeat
}
KeyPressEvent represents a keyboard key press
type MouseClickEvent ¶
type MouseClickEvent struct {
X float64
Y float64
Button int
Pressed bool // true for press, false for release
}
MouseClickEvent represents a mouse click
type WindowFocusEvent ¶
WindowFocusEvent represents a window focus change
Click to show internal directories.
Click to hide internal directories.