love.timer.step

love.timer.step Measures the time between two frames. Calling this changes the return value of love.timer.getDelta. Function Synopsis love.timer.step( ) Arguments None. Returns Nothing. See Also love.timer love.run

love.touch.getPosition

love.touch.getPosition Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the current position of the specified touch-press, in pixels. Function Synopsis x, y = love.touch.getPosition( id ) Arguments light userdata id The identifier of the touch-press. Use love.touch.getTouches, love.touchpressed, or love.touchmoved to obtain touch id values. Returns number x The position along the x-axis of the touch-press inside the window, in pixels. number y The p

love.touch.getPressure

love.touch.getPressure Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the current pressure of the specified touch-press. Function Synopsis pressure = love.touch.getPressure( id ) Arguments light userdata id The identifier of the touch-press. Use love.touch.getTouches, love.touchpressed, or love.touchmoved to obtain touch id values. Returns number pressure The pressure of the touch-press. Most touch screens aren't pressure sensitive, in which case t

love.touch.getTouches

love.touch.getTouches Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets a list of all active touch-presses. Function Synopsis touches = love.touch.getTouches( ) Arguments None. Returns table touches A list of active touch-press id values, which can be used with love.touch.getPosition. Notes The id values are the same as those used as arguments to love.touchpressed, love.touchmoved, and love.touchreleased. The id value of a specific touch-press is onl

love.touchmoved

love.touchmoved Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when a touch press moves inside the touch screen. Function Synopsis love.touchmoved( 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 i

love.touchpressed

love.touchpressed Available since LÖVE 0.10.0 This function is not supported in earlier versions. Callback function triggered when the touch screen is touched. Function Synopsis love.touchpressed( 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 press inside the window, in pixels. number y The y-axis position of the touch press inside the window, in pixels. number dx The x-axis movement of the touch p

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

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