input

package
v0.0.0-...-0ad4dd3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: GPL-3.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 ButtonInfo

type ButtonInfo struct {
	PressedX, PressedY                             int
	MoveWhilePressedX, MoveWhilePressedY           int
	MoveWhilePressedDeltaX, MoveWhilePressedDeltaY int
	Pressed                                        bool
	Released                                       bool
	ReleasedWhilePressedWithNoMovement             bool
	MovedWhilePressed                              bool
}

type Mouse

type Mouse struct {
	X, Y       int
	ButtonInfo map[ebiten.MouseButton]ButtonInfo
}

func NewMouse

func NewMouse() *Mouse

func (*Mouse) ScrollWheel

func (m *Mouse) ScrollWheel() float64

func (*Mouse) Update

func (mouse *Mouse) Update()

Jump to

Keyboard shortcuts

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