events

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT-0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDrawEvent added in v0.3.0

func NewDrawEvent() tcell.Event

func NewFunctionEvent added in v0.3.0

func NewFunctionEvent(fn func()) tcell.Event

func NewPingEvent added in v0.3.0

func NewPingEvent() tcell.Event

func NewPlayerEvent

func NewPlayerEvent() tcell.Event

func PostTickerEvents

func PostTickerEvents(postEvent func(tcell.Event) error, t time.Duration, newEvent func() tcell.Event, quit <-chan struct{})

Types

type DrawEvent added in v0.3.0

type DrawEvent struct {
	// contains filtered or unexported fields
}

func (DrawEvent) When added in v0.3.0

func (ev DrawEvent) When() time.Time

type FunctionEvent added in v0.3.0

type FunctionEvent struct {
	Run func()
	// contains filtered or unexported fields
}

func (FunctionEvent) When added in v0.3.0

func (ev FunctionEvent) When() time.Time

type PingEvent added in v0.3.0

type PingEvent struct {
	// contains filtered or unexported fields
}

func (PingEvent) When added in v0.3.0

func (ev PingEvent) When() time.Time

type PlayerEvent

type PlayerEvent struct {
	// contains filtered or unexported fields
}

func (PlayerEvent) When added in v0.3.0

func (ev PlayerEvent) When() time.Time

Jump to

Keyboard shortcuts

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