love.timer.getDelta

love.timer.getDelta Returns the time between the last two frames. Function Synopsis dt = love.timer.getDelta( ) Arguments None. Returns number dt The time passed (in seconds). See Also love.timer

love.timer.getAverageDelta

love.timer.getAverageDelta Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the average delta time (seconds per frame) over the last second. Function Synopsis delta = love.timer.getAverageDelta( ) Arguments None. Returns number delta The average delta time over the last second. Examples Display text at the top left of the screen showing the average time taken to update and draw each frame. function love.draw() local delta = love.timer.getAverag

love.threaderror

love.threaderror Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Callback function triggered when a Thread encounters an error. Function Synopsis love.threaderror( thread, errorstr ) Arguments Thread thread The thread which produced the error. string errorstr The error message. Returns Nothing. Example function love.load() mythread = love.thread.newThread("thread.lua") mythread:start() end   function love.threaderror(thread, errorstr) print("Thread

love.thread.newThread

love.thread.newThread Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new Thread from a Lua file or FileData object. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis thread = love.thread.newThread( filename ) Arguments string filename The name of the Lua file to use as the source. Returns Thread thread A new Thread that has yet to be started. Function Available since LÖVE 0.9.0 This variant

love.thread.newChannel

love.thread.newChannel Available since LÖVE 0.9.0 This function is not supported in earlier versions. Create a new unnamed thread channel. One use for them is to pass new unnamed channels to other threads via Channel:push on a named channel. Function Synopsis channel = love.thread.newChannel( ) Arguments None. Returns Channel channel The new Channel object. See Also love.thread Channel

love.thread.getThreads

love.thread.getThreads Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 This function is not supported in earlier or later versions. Get all threads. Function Synopsis threads = love.thread.getThreads( ) Arguments None. Returns table threads A table containing all threads indexed by their names. See Also love.thread

love.thread.getThread

love.thread.getThread Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 This function is not supported in earlier or later versions. Look for a thread and get its object. Function Synopsis thread = love.thread.getThread( name ) Arguments string name The name of the thread to return. Returns Thread thread The thread with that name. Function Synopsis thread = love.thread.getThread( ) Arguments None. Returns Thread thread The current thread. See Also love.thread

love.thread.getChannel

love.thread.getChannel Available since LÖVE 0.9.0 This function is not supported in earlier versions. Creates or retrieves a named thread channel. Function Synopsis channel = love.thread.getChannel( name ) Arguments string name The name of the channel you want to create or retrieve. Returns Channel channel The Channel object associated with the name. See Also love.thread Channel

love.textinput

love.textinput Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when text has been entered by the user. For example if shift-2 is pressed on an American keyboard layout, the text "@" will be generated. Function Synopsis love.textinput( text ) Arguments string text The UTF-8 encoded unicode text. Returns Nothing. Notes Although Lua strings can store UTF-8 encoded unicode text just fine, many functions in Lua's string library will not treat the text a

love.textedited

love.textedited Available since LÖVE 0.10.0 This function is not supported in earlier versions. Called when the candidate text for an IME (Input Method Editor) has changed. The candidate text is not the final text that the user will eventually choose. Use love.textinput for that. Function Synopsis love.textedited( text, start, length ) Arguments string text The UTF-8 encoded unicode candidate text. number start The start cursor of the selected candidate text. number length The length o