New Hugo site in website/ with prosperon.dev theme (blue/gold/castle aesthetic), docs sidebar navigation, and content pages. Rewrote all doc files to align with the actual codebase: compositor+film2d rendering, use() modules (no global prosperon object), Pit language, script+JSON entity model. Added entities.md, front matter to all 70+ API docs, and updated API index for current module architecture. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
491 B
Markdown
31 lines
491 B
Markdown
---
|
|
title: "event"
|
|
type: docs
|
|
---
|
|
|
|
# event
|
|
|
|
### push_event(event) <sub>function</sub>
|
|
|
|
Push a custom user event into SDL's queue, passing a callback function.
|
|
|
|
|
|
|
|
**event**: A function to call when this event is consumed.
|
|
|
|
|
|
**Returns**: None
|
|
|
|
|
|
### engine_input(callback) <sub>function</sub>
|
|
|
|
Poll all system events (keyboard, mouse, etc.) and call the given function with each event object.
|
|
|
|
|
|
|
|
**callback**: A function that executes on each event consumed from the poll.
|
|
|
|
|
|
**Returns**: None
|
|
|