input

package
v0.0.0-...-53be003 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const CODE_EXIT byte = 0
View Source
const CODE_INVALID byte = 4
View Source
const CODE_JUMP byte = 1
View Source
const CODE_LEFT byte = 3
View Source
const CODE_RIGHT byte = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

func KeyboardState

func KeyboardState() *Input

func NewInput

func NewInput() *Input

func (Input) IsExit

func (inputData Input) IsExit() bool

func (Input) IsValid

func (inputData Input) IsValid() bool

type InputStateAccessor

type InputStateAccessor interface {
	IsExit() bool
	IsValid() bool
}

Jump to

Keyboard shortcuts

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