control

package
v0.0.0-...-4901950 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bindings

type Bindings interface {
	Lookup(code key.Code) KeyBinding
	On(k KeyBinding, fn func(KeyBinding))
	Press(code key.Code)
	Pressed(k KeyBinding) bool
	Release(code key.Code)
}

func DefaultBindings

func DefaultBindings() Bindings

type KeyBinding

type KeyBinding uint8
const (
	KeyUnknown KeyBinding = iota
	KeyCamForward
	KeyCamReverse
	KeyCamLeft
	KeyCamRight
	KeyCamUp
	KeyCamDown
	KeyLineLeft
	KeyLineRight
	KeyCameraFollow
	KeyPause
	KeyReload
	KeyDebug
)

Jump to

Keyboard shortcuts

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