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.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.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.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.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.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.getDisplayName

love.window.getDisplayName Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the name of a display. Function Synopsis name = love.window.getDisplayName( displayindex ) Arguments number displayindex (1) The index of the display to get the name of. Returns string name The name of the specified display. See Also love.window love.window.getDisplayCount

love.window.getFullscreen

love.window.getFullscreen Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the window is fullscreen. Function Synopsis fullscreen, fstype = love.window.getFullscreen( ) Arguments None. Returns boolean fullscreen True if the window is fullscreen, false otherwise. FullscreenType fstype The type of fullscreen mode used. See Also love.window love.window.setFullscreen love.window.setMode

love.window.getFullscreenModes

love.window.getFullscreenModes Available since LÖVE 0.9.0 Moved from love.graphics.getModes. Gets a list of supported fullscreen modes. Function Synopsis modes = love.window.getFullscreenModes( display ) Arguments number display (1) The index of the display, if multiple monitors are available. Returns table modes A table of width/height pairs. (Note that this may not be in order.) Examples Format of the returned table modes = love.window.getFullscreenModes()   -- modes = { -- { wid

love.window.getHeight

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