integrate

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsPatched = false

IsPatched indicates whether the game uses a patched version of Ebiten.

Functions

func AfterDraw added in v0.8.0

func AfterDraw(screen image.Image)

AfterDraw handles all post-draw operations after game.Draw() completes. Currently handles: screenshots (ProcessScreenshots) and highlight overlays. Called by patched ebiten in DrawOffscreen().

func Capture

func Capture(screen image.Image)

Capture processes screenshots for injection.

func CursorPosition

func CursorPosition() (x, y int)

CursorPosition returns the cursor position, respecting the current mode.

func IsKeyJustPressed

func IsKeyJustPressed(key Key) bool

func IsKeyJustReleased

func IsKeyJustReleased(key Key) bool

func IsKeyPressed

func IsKeyPressed(key Key) bool

IsKeyPressed returns whether the key is pressed, respecting the current mode.

func IsMouseButtonJustPressed

func IsMouseButtonJustPressed(button MouseButton) bool

func IsMouseButtonJustReleased

func IsMouseButtonJustReleased(button MouseButton) bool

func IsMouseButtonPressed

func IsMouseButtonPressed(button MouseButton) bool

IsMouseButtonPressed returns whether the mouse button is pressed, respecting the current mode.

func KeyPressDuration

func KeyPressDuration(key Key) int

func MouseButtonPressDuration

func MouseButtonPressDuration(button MouseButton) int

func RegisterDrawHighlights added in v0.8.0

func RegisterDrawHighlights(fn func(screen image.Image))

RegisterDrawHighlights registers a callback for drawing highlight overlays. The callback receives screen as image.Image; caller must type assert to *ebiten.Image. Called by autoui during Register() to enable highlights in patch method.

func Update

func Update() bool

Update runs the internal update loop.

func Wheel

func Wheel() (x, y float64)

Wheel returns the mouse wheel scroll amount, respecting the current mode.

Types

type Key

type Key = input.Key

type MouseButton

type MouseButton = input.MouseButton

Jump to

Keyboard shortcuts

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