Files
prosperon/docs/api/modules/event.md
2025-12-10 15:19:13 -06:00

456 B

event

push_event(event) function

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) function

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