Joystick:getVibration

Joystick:getVibration Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the current vibration motor strengths on a Joystick with rumble support. Function Synopsis left, right = Joystick:getVibration( ) Arguments None. Returns number left Current strength of the left vibration motor on the Joystick. number right Current strength of the right vibration motor on the Joystick. See Also Joystick Joystick:setVibration Joystick:isVibrationSupported

enet.host:get socket address

enet.host:get socket address Returns a string that describes the socket address of the given host. The string is formatted as “a.b.c.d:port”, where “a.b.c.d” is the IP address of the used socket. Function Synopsis host:get_socket_address() Arguments None. Returns string address A string that describes the socket address. See Also lua-enet enet.host

(Image):getFilter

(Image):getFilter Gets the filter mode for an image. Function Synopsis min, mag = Image:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the image. FilterMode mag Filter mode used when magnifying the image. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis min, mag, anisotropy = Image:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the image. FilterMode mag Filter mo

Text:add

Text:add Available since LÖVE 0.10.0 This function is not supported in earlier versions. Adds additional colored text to the Text object at the specified position. Function Synopsis index = Text:add( textstring, x, y, angle, sx, sy, ox, oy, kx, ky ) Arguments string textstring The text to add to the object. number x The position of the new text on the x-axis. number y The position of the new text on the y-axis. number angle (0) The orientation of the new text in radians. number sx (1)

ParticleSystem:setParticleLifetime

ParticleSystem:setParticleLifetime Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:setParticleLife. Sets the lifetime of the particles. Function Synopsis ParticleSystem:setParticleLifetime( min, max ) Arguments number min The minimum life of the particles (in seconds). number max (min) The maximum life of the particles (in seconds). Returns Nothing. See Also ParticleSystem

ParticleSystem:getInsertMode

ParticleSystem:getInsertMode Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the mode used when the ParticleSystem adds new particles. Function Synopsis mode = ParticleSystem:getInsertMode( ) Arguments None. Returns ParticleInsertMode mode The mode used when the ParticleSystem adds new particles. See Also ParticleSystem ParticleSystem:setInsertMode

Contact:getChildren

Contact:getChildren Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the child indices of the shapes of the two colliding fixtures. For ChainShapes, an index of 1 is the first edge in the chain. Used together with Fixture:rayCast or ChainShape:getChildEdge. Function Synopsis indexA, indexB = Contact:getChildren( ) Arguments None. Returns number indexA The child index of the first fixture's shape. number indexB The child index of the second fixture's s

love.resize

love.resize Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Called when the window is resized, for example if the user resizes the window, or if love.window.setMode is called with an unsupported width or height in fullscreen and the window chooses the closest appropriate size. Function Synopsis love.resize( w, h ) Arguments number w The new width, in pixels. number h The new height, in pixels. Returns Nothing. Notes Calls to love.window.setMode will only

love.font.newTrueTypeRasterizer

love.font.newTrueTypeRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new TrueType Rasterizer. Function Create a TrueTypeRasterizer with the default font. Synopsis rasterizer = love.font.newTrueTypeRasterizer( size, hinting_mode ) Arguments number size The font size. HintingMode hinting_mode True Type hinting mode. Returns TrueTypeRasterizer rasterizer The rasterizer. See Also love.font love.font.newRasterizer love.font.newBMF

Joystick:getHat

Joystick:getHat Available since LÖVE 0.9.0 It has been moved from love.joystick.getHat. Gets the direction of the Joystick's hat. Function Synopsis direction = Joystick:getHat( hat ) Arguments number hat The index of the hat to be checked. Returns JoystickHat direction The direction the hat is pushed. See Also Joystick Joystick:getHatCount