love.focus

love.focus Available since LÖVE 0.7.0 This callback is not supported in earlier versions. Callback function triggered when window receives or loses focus. Function Synopsis love.focus( focus ) Arguments boolean focus True if the window gains focus, false if it loses focus. Returns Nothing. Example function love.load() text = "FOCUSED" end   function love.draw() love.graphics.print(text,0,0) end   function love.focus(f) if f then print("Window is focused.") text = "FOCUSED

love.font.newBMFontRasterizer

love.font.newBMFontRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new BMFont Rasterizer. Function Synopsis rasterizer = love.font.newBMFontRasterizer( imageData, glyphs ) Arguments ImageData imageData The image data containing the drawable pictures of font glyphs. string glyphs The sequence of glyphs in the ImageData. Returns BMFontRasterizer rasterizer The rasterizer. Function Synopsis rasterizer = love.font.newBMFontRasterizer(

love.font.newFontData

love.font.newFontData Available since LÖVE 0.7.0 and removed in LÖVE 0.8.0 This function is not supported in earlier or later versions. Creates a new FontData. Function Synopsis fontData = love.font.newFontData( rasterizer ) Arguments Rasterizer rasterizer The Rasterizer containing the font. Returns FontData fontData The FontData. See Also love.font FontData

love.font.newGlyphData

love.font.newGlyphData Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new GlyphData. Function Synopsis glyphData = love.font.newGlyphData( rasterizer, glyph ) Arguments Rasterizer rasterizer The Rasterizer containing the font. number glyph The character code of the glyph. Returns GlyphData glyphData The GlyphData. See Also love.font GlyphData

love.font.newRasterizer

love.font.newRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new Rasterizer. Function Synopsis rasterizer = love.font.newRasterizer( filename ) Arguments string filename The font file. Returns Rasterizer rasterizer The rasterizer. Function Synopsis rasterizer = love.font.newRasterizer( data ) Arguments FileData data The FileData of the font file. Returns Rasterizer rasterizer The rasterizer. Create a TrueTypeRasterizer. Funct

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

love.gamepadaxis

love.gamepadaxis Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad axis is moved. Function Synopsis love.gamepadaxis( joystick, axis, value ) Arguments Joystick joystick The joystick object. GamepadAxis axis The virtual gamepad axis. number value The new axis value. Returns Nothing. See Also love Joystick:isGamepad Joystick:getGamepadAxis

love.gamepadpressed

love.gamepadpressed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad button is pressed. Function Synopsis love.gamepadpressed( joystick, button ) Arguments Joystick joystick The joystick object. GamepadButton button The virtual gamepad button. Returns Nothing. See Also love love.gamepadreleased Joystick:isGamepad

love.gamepadreleased

love.gamepadreleased Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad button is released. Function Synopsis love.gamepadreleased( joystick, button ) Arguments Joystick joystick The joystick object. GamepadButton button The virtual gamepad button. Returns Nothing. See Also love love.gamepadpressed Joystick:isGamepad

love.getVersion

love.getVersion Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the current running version of LÖVE. Function Synopsis major, minor, revision, codename = love.getVersion( ) Arguments None. Returns number major The major version of LÖVE, i.e. 0 for version 0.9.1. number minor The minor version of LÖVE, i.e. 9 for version 0.9.1. number revision The revision version of LÖVE, i.e. 1 for version 0.9.1. string codename The codename of the current version,