Documentation ¶
Index ¶
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
}
Keyboard handles keyboard input using the eiannone/keyboard package.
func NewKeyboard ¶
func NewKeyboard() *Keyboard
NewKeyboard creates a new Keyboard.
Returns:
- *Keyboard: The new Keyboard.
func (*Keyboard) Close ¶
Close closes the Keyboard.
Returns:
- error: An error if the Keyboard could not be closed.
func (*Keyboard) GetErrorChannel ¶
GetErrorChannel returns the error channel for the Keyboard.
Returns:
- <-chan error: The error channel.
func (*Keyboard) GetKeyChannel ¶
GetKeyChannel returns the key channel for the Keyboard.
Returns:
- <-chan keyboard.Key: The key channel.
Click to show internal directories.
Click to hide internal directories.