inputmanager

package
v0.0.0-...-4bf0284 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsQuitKey

func IsQuitKey(key ebiten.Key) bool

func IsQuitPressed

func IsQuitPressed() bool

func LeftClick

func LeftClick() bool

func LeftClickReleased

func LeftClickReleased() bool

func MousePosition

func MousePosition() (int, int)

func RightClick

func RightClick() bool

func Update

func Update()

func Wheel

func Wheel() (float64, float64)

return normalized wheel values, which are always -1,0,1 for both x and y, no matter how far the wheel has moved

Types

type InputManager

type InputManager struct {
	Counter uint64
	// contains filtered or unexported fields
}

func NewInputManager

func NewInputManager() *InputManager

func (*InputManager) Update

func (manager *InputManager) Update()

Jump to

Keyboard shortcuts

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