input

package
v0.0.0-...-e49e192 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: This is duplicated with draw package's definitions.
	ScreenWidth  = 320
	ScreenHeight = 240
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	DirectionLeft Direction = iota
	DirectionRight
	DirectionDown
)

type Input

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

func Current

func Current() *Input

func (*Input) IsActionKeyJustPressed

func (i *Input) IsActionKeyJustPressed() bool

func (*Input) IsActionKeyPressed

func (i *Input) IsActionKeyPressed() bool

func (*Input) IsDirectionKeyPressed

func (i *Input) IsDirectionKeyPressed(dir Direction) bool

func (*Input) IsKeyJustPressed

func (i *Input) IsKeyJustPressed(key ebiten.Key) bool

func (*Input) IsKeyPressed

func (i *Input) IsKeyPressed(key ebiten.Key) bool

func (*Input) IsLanguageSwitcherPressed

func (i *Input) IsLanguageSwitcherPressed() bool

func (*Input) IsSpaceJustTouched

func (i *Input) IsSpaceJustTouched() bool

func (*Input) IsSpaceTouched

func (i *Input) IsSpaceTouched() bool

func (*Input) IsTouchEnabled

func (i *Input) IsTouchEnabled() bool

func (*Input) Update

func (i *Input) Update()

Jump to

Keyboard shortcuts

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