love.filesystem.append

love.filesystem.append Available since LÖVE 0.9.0 This function is not supported in earlier versions. Append data to an existing file. Function Synopsis success, errormsg = love.filesystem.append( name, data, size ) Arguments string name The name (and path) of the file. string data The string data to append to the file. number size (all) How many bytes to write. Returns boolean success True if the operation was successful, or nil if there was an error. string errormsg The error mess

love.filedropped

love.filedropped Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when a file is dragged and dropped onto the window. Function Synopsis love.filedropped( file ) Arguments File file The unopened File object representing the file that was dropped. Returns Nothing. Notes File:open must be called on the file before reading from or writing to it. File:getFilename will return the full platform-dependent path to the file. See Also l

love.event.wait

love.event.wait Like love.event.poll(), but blocks until there is an event in the queue. Function Synopsis e, a, b, c, d = love.event.wait( ) Arguments None. Returns Event e The type of event. Variant a First event argument. Variant b Second event argument. Variant c Third event argument. Variant d Fourth event argument. See Also love.event

love.event.quit

love.event.quit Available since LÖVE 0.8.0 This function is not supported in earlier versions. Adds the quit event to the queue. The quit event is a signal for the event handler to close LÖVE. It's possible to abort the exit process with the love.quit callback. Function Synopsis love.event.quit( ) Arguments None. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis love.event.quit( exitstatus ) Arguments number exitstatus

love.event.push

love.event.push Adds an event to the event queue. Function Synopsis love.event.push( e, a, b, c, d ) Arguments Event e The name of the event. Variant a (nil) First event argument. Variant b (nil) Second event argument. Variant c (nil) Third event argument. Variant d (nil) Available since 0.8.0 Fourth event argument. Returns Nothing. Examples Quitting a game in 0.8.0 function love.keypressed(k) if k == 'escape' then love.event.push('quit') -- Quit the game. end end Quitting a g

love.event.pump

love.event.pump 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 you're still running, and if you want to handle OS-generated events at all (think callbacks). 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 Al

love.event.poll

love.event.poll Returns an iterator for messages in the event queue. Function Synopsis i = love.event.poll( ) Arguments None. Returns function i Iterator function usable in a for loop. Examples Checking for events in 0.8.0 for e, a, b, c, d in love.event.poll() do if e == "quit" then -- Quit! end end Checking for events in 0.7.2 for e, a, b, c in love.event.poll() do if e == "q" then -- Quit! end end See Also love.event love.event.wait

love.event.clear

love.event.clear Clears the event queue. Function Synopsis love.event.clear() Arguments None. Returns Nothing. See Also love.event

love.errhand

love.errhand The error handler, used to display error messages. Function Synopsis love.errhand( msg ) Arguments string msg The error message. Returns Nothing. Examples Available since LÖVE 0.10.0 This variant is not supported in earlier versions. The default function used if you don't supply your own. local function error_printer(msg, layer) print((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", ""))) end   function love.errhand(msg) msg = tostring(msg)

love.directorydropped

love.directorydropped Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when a directory is dragged and dropped onto the window. Function Synopsis love.directorydropped( path ) Arguments string path The full platform-dependent path to the directory. It can be used as an argument to love.filesystem.mount, in order to gain read access to the directory with love.filesystem. Returns Nothing. Notes Paths passed into this callback are