Documentation
¶
Overview ¶
Package keyboard interprets Wayland evdev key events on the UI loop.
Index ¶
- type Key
- type Keyboard
- func (k *Keyboard) Close()
- func (k *Keyboard) Event(evdev uint32, pressed bool, now time.Time) (Key, error)
- func (k *Keyboard) Focus(on bool)
- func (k *Keyboard) Mask(depressed, latched, locked, groupDepressed, groupLatched, groupLocked uint32) error
- func (k *Keyboard) NextRepeat() (time.Time, bool)
- func (k *Keyboard) RepeatInfo(rate int, delay time.Duration)
- func (k *Keyboard) ReplaceFD(fd, size int) error
- func (k *Keyboard) Rules(layout, options string) error
- func (k *Keyboard) Tick(now time.Time) (Key, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
func (*Keyboard) ReplaceFD ¶
ReplaceFD consumes the received FD even on failure; the previous keymap remains valid on failure.
func (*Keyboard) Tick ¶
Tick returns at most one repeat for a due deadline, without accumulating missed ticks. It resolves the held physical key against the current modifier/group mask. Compose is fed only by physical presses: synthetic repeats neither advance a compose sequence nor replay the press-time composed text.
Click to show internal directories.
Click to hide internal directories.