love.joystick.getNumButtons

love.joystick.getNumButtons Removed in LÖVE 0.9.0 It has been renamed to Joystick:getButtonCount. Returns the number of buttons on the joystick. Function Synopsis buttons = love.joystick.getNumButtons( joystick ) Arguments number joystick The joystick to be checked Returns number buttons The number of buttons available See Also love.joystick

love.graphics.setCaption

love.graphics.setCaption Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.setTitle. Sets the window caption. Function Synopsis love.graphics.setCaption( caption ) Arguments string caption The new window caption. Returns Nothing. See Also love.graphics

love.graphics.setStencil

love.graphics.setStencil Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0 It has been replaced by love.graphics.stencil and love.graphics.setStencilTest. Defines or releases a stencil for the drawing operations. The passed function draws to the stencil instead of the screen, creating an image with transparent and opaque pixels. While active, it is used to test where pixels will be drawn or discarded. Image contents do not directly affect the stencil, but see below for a workaround. C

enet.host create

enet.host create Returns a new host. All arguments are optional. A bind_address of nil makes a host that can not be connected to (typically a client). Otherwise the address can either be of the form <ipaddress>:<port>, <hostname>:<port>, or *:<port>. Example addresses include "127.0.0.1:8888", "localhost:2232", and "*:6767". Function Synopsis host = enet.host_create(bind_address, peer_count, channel_count, in_bandwidth, out_bandwidth) Arguments string bind_add

(File):lines

(File):lines Iterate over all the lines in a file. Function Synopsis iterator = File:lines( ) Arguments None. Returns function iterator The iterator (can be used in for loops). See Also File

ParticleSystem:setPosition

ParticleSystem:setPosition Sets the position of the emitter. Function Synopsis ParticleSystem:setPosition( x, y ) Arguments number x Position along x-axis. number y Position along y-axis. Returns Nothing. See Also ParticleSystem

Video:seek

Video:seek Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sets the current playback position of the Video. Function Synopsis Video:seek( offset ) Arguments number offset The time in seconds since the beginning of the Video. Returns Nothing. See Also Video Video:rewind Video:tell

Joint:getUserData

Joint:getUserData Available since LÖVE 0.9.2 This method is not supported in earlier versions. Returns the Lua value associated with this Joint. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis value = Joint:getUserData( ) Arguments None. Returns any value The Lua value associated with the Joint. See Also Joint Joint:setUserData

love.mouse.setGrab

love.mouse.setGrab Removed in LÖVE 0.9.0 It has been renamed to love.mouse.setGrabbed. Grabs the mouse and confines it to the window. Function Synopsis love.mouse.setGrab( grab ) Arguments boolean grab True to confine the mouse, false to let it leave the window. Returns Nothing. Examples Toggles whether the mouse is grabbed by pressing tab, with the help of love.mouse.isGrabbed. function love.keypressed(key) if key == "tab" then local state = not love.mouse.isGrabbed() -- t

Font:getFilter

Font:getFilter Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the filter mode for a font. Function Synopsis min, mag, anisotropy = Font:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the font. FilterMode mag Filter mode used when magnifying the font. number anisotropy Maximum amount of anisotropic filtering used. See Also Font FilterMode