event

package
v0.0.0-...-9e2bcf1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is responsible for handling input and output for the vm.

func NewHandler

func NewHandler(win *pixelgl.Window, vm *chip8.VM) Handler

NewHandler returns a new event handler.

func (*Handler) Handle

func (h *Handler) Handle()

Handle continually loops while the VM window is open; handling events. Events are handled with a non-blocking select. Draw and sound events are handled independently with input being treated as the default event to check.

Jump to

Keyboard shortcuts

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