lovr.event.push

Pushes an event onto the event queue. It will be processed the next time lovr.event.poll is called. For an event to be processed properly, there needs to be a function in the lovr.handlers table with a key that's the same as the event name.

lovr.event.push(name, ...)

Arguments

NameTypeDescription
namestringThe name of the event.
...*The arguments for the event. Currently, up to 4 are supported.

Returns

Nothing

Notes

Only nil, booleans, numbers, strings, and LÖVR objects are supported types for event payloads.

See also