love.window.getDisplayCount

love.window.getDisplayCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the number of connected monitors. Function Synopsis count = love.window.getDisplayCount( ) Arguments None. Returns number count The number of currently connected displays. See Also love.window love.window.setMode love.window.getMode love.window.getFullscreenModes love.window.getDesktopDimensions

love.window.getDimensions

love.window.getDimensions Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use love.graphics.getDimensions or love.window.getMode instead. Gets the width and height of the window. Function Synopsis width, height = love.window.getDimensions( ) Arguments None. Returns number width The width of the window. number height The height of the window. See Also love.window love.window.getWidth love.window.getHeight love.window.setMode

love.window.getDesktopDimensions

love.window.getDesktopDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height of the desktop. Function Synopsis width, height = love.window.getDesktopDimensions( display ) Arguments number display (1) The index of the display, if multiple monitors are available. Returns number width The width of the desktop. number height The height of the desktop. Examples Show the resolution of the monitor the window is currently in funct

love.window.fromPixels

love.window.fromPixels Available since LÖVE 0.9.2 This function is not supported in earlier versions. Converts a number from pixels to density-independent units. The pixel density inside the window might be greater (or smaller) than the "size" of the window. For example on a retina screen in Mac OS X with the highdpi window flag enabled, the window may take up the same physical size as an 800x600 window, but the area inside the window uses 1600x1200 pixels. love.window.fromPixels(1600) wou

love.window.close

love.window.close Available since LÖVE 0.10.0 This function is not supported in earlier versions. Closes the window. It can be reopened with love.window.setMode. love.graphics functions and objects will cause a hard crash of LÖVE if used while the window is closed. Function Synopsis love.window.close( ) Arguments None. Returns Nothing. See Also love.window love.window.setMode love.graphics.isActive

love.wheelmoved

love.wheelmoved Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when the mouse wheel is moved. Function Synopsis love.wheelmoved( x, y ) Arguments number x Amount of horizontal mouse wheel movement. Positive values indicate movement to the right. number y Amount of vertical mouse wheel movement. Positive values indicate upward movement. Returns Nothing. Examples local text = ""   function love.wheelmoved(x, y) if y > 0

love.visible

love.visible Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Callback function triggered when window is minimized/hidden or unminimized by the user. Function Synopsis love.visible( visible ) Arguments boolean visible True if the window is visible, false if it isn't. Returns Nothing. Example function love.visible(v) print(v and "Window is visible!" or "Window is not visible!"); end See Also love

love.video.newVideoStream

love.video.newVideoStream Available since LÖVE 0.10.0 This function is not supported in earlier versions. Creates a new VideoStream. Currently only Ogg Theora video files are supported. VideoStreams can't draw videos, see love.graphics.newVideo for that. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis videostream = love.video.

love.update

love.update Callback function used to update the state of the game every frame. Function Synopsis love.update( dt ) Arguments number dt Time since the last update in seconds. Returns Nothing. Examples Run a function called think inside a table called npc once per second. dtotal = 0 -- this keeps track of how much time has passed function love.update(dt) dtotal = dtotal + dt -- we add the time passed since the last update, probably a very small number like 0.01 if dtotal >= 1

love.touchreleased

love.touchreleased Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when the touch screen stops being touched. Function Synopsis love.touchreleased( id, x, y, dx, dy, pressure ) Arguments light userdata id The identifier for the touch press. number x The x-axis position of the touch inside the window, in pixels. number y The y-axis position of the touch inside the window, in pixels. number dx The x-axis movement of the touch in