keyboard

package
v0.0.0-...-c6c79d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2019 License: MIT Imports: 5 Imported by: 0

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
}

normal operation:

keyboard -> emit

func Init

func Init(

	keyMap map[bbox.Key]*bbox.Coord,
) *Keyboard

func (*Keyboard) Close

func (kb *Keyboard) Close()

func (*Keyboard) Closing

func (kb *Keyboard) Closing() <-chan struct{}

func (*Keyboard) Pressed

func (kb *Keyboard) Pressed() <-chan bbox.Coord

func (*Keyboard) Run

func (kb *Keyboard) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL