input

package
v0.0.0-...-883f3e4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

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

func KeyDown

func KeyDown() Button

func KeyF

func KeyF() Button

func KeyLeft

func KeyLeft() Button

func KeyRight

func KeyRight() Button

func KeyUp

func KeyUp() Button

func MouseButtonLeft

func MouseButtonLeft() Button

func (Button) Zero

func (btn Button) Zero() bool

type Source

type Source interface {
	Focused() bool
	JustReleased(btn Button) bool
	JustPressed(btn Button) bool
	Pressed(btn Button) bool
	MousePosition() geometry.Vec
	MouseInsideWindow() bool
	Bounds() geometry.Rect
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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