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.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.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.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.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.filesystem.areSymlinksEnabled

love.filesystem.areSymlinksEnabled Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether love.filesystem follows symbolic links. Function Synopsis enabled = love.filesystem.areSymlinksEnabled( ) Arguments None. Returns boolean enable Whether love.filesystem follows symbolic links. See Also love.filesystem love.filesystem.setSymlinksEnabled love.filesystem.isSymlink

love.filesystem.createDirectory

love.filesystem.createDirectory Available since LÖVE 0.9.0 It has been renamed from love.filesystem.mkdir. Recursively creates a directory. When called with "a/b" it creates both "a" and "a/b", if they don't exist already. Function Synopsis success = love.filesystem.createDirectory( name ) Arguments string name The directory to create. Returns boolean success True if the directory was created, false if not. See Also love.filesystem

love.filesystem.enumerate

love.filesystem.enumerate Removed in LÖVE 0.9.0 It has been renamed to love.filesystem.getDirectoryItems. Returns a table with the names of files and subdirectories in the specified path. The table is not sorted in any way; the order is undefined. If the path passed to the function exists in the game and the save directory, it will list the files and directories from both places. Function Synopsis files = love.filesystem.enumerate( dir ) Arguments string dir The directory. Returns tab

love.filesystem.exists

love.filesystem.exists Check whether a file or directory exists. Function Synopsis exists = love.filesystem.exists( filename ) Arguments string filename The path to a potential file or directory. Returns boolean exists True if there is a file or directory with the specified name. False otherwise. See Also love.filesystem

love.filesystem.getAppdataDirectory

love.filesystem.getAppdataDirectory Returns the application data directory (could be the same as getUserDirectory) Function Synopsis path = love.filesystem.getAppdataDirectory( ) Arguments None. Returns string path The path of the application data directory See Also love.filesystem