This commit is contained in:
2025-12-10 15:19:13 -06:00
parent 19880c6826
commit f6977b8864
76 changed files with 6240 additions and 15 deletions

25
docs/api/modules/event.md Normal file
View File

@@ -0,0 +1,25 @@
# 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