Documentation
¶
Index ¶
- Variables
- func AfterDraw(screen image.Image)
- func Capture(screen image.Image)
- func CursorPosition() (x, y int)
- func IsKeyJustPressed(key Key) bool
- func IsKeyJustReleased(key Key) bool
- func IsKeyPressed(key Key) bool
- func IsMouseButtonJustPressed(button MouseButton) bool
- func IsMouseButtonJustReleased(button MouseButton) bool
- func IsMouseButtonPressed(button MouseButton) bool
- func KeyPressDuration(key Key) int
- func MouseButtonPressDuration(button MouseButton) int
- func RegisterDrawHighlights(fn func(screen image.Image))
- func Update() bool
- func Wheel() (x, y float64)
- type Key
- type MouseButton
Constants ¶
This section is empty.
Variables ¶
var IsPatched = false
IsPatched indicates whether the game uses a patched version of Ebiten.
Functions ¶
func AfterDraw ¶ added in v0.8.0
AfterDraw handles all post-draw operations after game.Draw() completes. Currently handles: screenshots (ProcessScreenshots) and highlight overlays. Called by patched ebiten in DrawOffscreen().
func CursorPosition ¶
func CursorPosition() (x, y int)
CursorPosition returns the cursor position, respecting the current mode.
func IsKeyJustPressed ¶
func IsKeyJustReleased ¶
func IsKeyPressed ¶
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 MouseButtonPressDuration ¶
func MouseButtonPressDuration(button MouseButton) int
func RegisterDrawHighlights ¶ added in v0.8.0
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.
Types ¶
type MouseButton ¶
type MouseButton = input.MouseButton