key

package
v0.0.0-...-dc2b14c Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Left       = Mouse("left")
	Center     = Mouse("center")
	Right      = Mouse("right")
	WheelUp    = Mouse("wheelUp")
	WheelDown  = Mouse("wheelDown")
	WheelLeft  = Mouse("wheelLeft")
	WheelRight = Mouse("wheelRight")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {

	// Key source the key to be pressed.
	Key() string

	// Do is a method to press the key.
	Do()
}

Event is a keyboard or mouse event.

type Mouse

type Mouse string

func (Mouse) Do

func (m Mouse) Do()

func (Mouse) Key

func (m Mouse) Key() string

Jump to

Keyboard shortcuts

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