driver

package
v0.0.0-...-b298911 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDriver = &defaultDriver{}

DefaultDriver is a default driver for ebiten

Functions

This section is empty.

Types

type Driver

type Driver interface {
	CursorPosition() image.Point

	IsMouseButtonPressed(key ebiten.MouseButton) bool

	IsMouseButtonJustPressed(key ebiten.MouseButton) bool

	MousePrimaryButton() ebiten.MouseButton

	IsKeyPressed(ebiten.Key) bool

	IsKeyJustPressed(key ebiten.Key) bool

	PressedTouchPositions() []image.Point

	JustPressedTouchPositions() []image.Point
}

Driver is the middleware for ebiten

Jump to

Keyboard shortcuts

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