Difference between revisions of "love.event.pump"

(Created page with 'Pump events into the event queue. This is a low-level function, and is usually not called explicitly, but implicitly by <code>love.event.poll()</code> or <code>[[love.event.w…')
 
m
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Pump events into the event queue. This is a low-level function, and is usually not called explicitly, but implicitly by <code>[[love.event.poll]]()</code> or <code>[[love.event.wait]]()</code>.
+
{{newin|[[0.6.0]]|060|type=function}}
 +
Pump events into the event queue.
 +
 
 +
This is a low-level function, and is usually not called by the user, but by <code>[[love.run]]</code>.
 +
 
 +
Note that this does need to be called for any OS to think your program is still running,
 +
and if you want to handle OS-generated events at all (think callbacks).
 +
 
 +
{{notice|love.event.pump can only be called from the main thread, but afterwards, the rest of love.event can be used from any other thread.}}
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 23:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Pump events into the event queue.}}
 
{{#set:Description=Pump events into the event queue.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|love.event.pump}}

Latest revision as of 15:22, 26 May 2024

Available since LÖVE 0.6.0
This function is not supported in earlier versions.

Pump events into the event queue.

This is a low-level function, and is usually not called by the user, but by love.run.

Note that this does need to be called for any OS to think your program is still running, and if you want to handle OS-generated events at all (think callbacks).

O.png love.event.pump can only be called from the main thread, but afterwards, the rest of love.event can be used from any other thread.  


Function

Synopsis

love.event.pump( )

Arguments

None.

Returns

Nothing.

See Also


Other Languages