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

love.timer.sleep Pauses the current thread for the specified amount of time. This function causes the entire thread to pause for the duration of the sleep. Graphics will not draw, input events will not trigger, code will not run, and the window will be unresponsive if you use this as "wait()" in the main thread. Use love.update or a Timer library for that instead. Function Available since LÖVE 0.8.0 This behaviour is not supported in earlier versions. Synopsis love.timer.sleep( s ) Argume

love.timer.getTime

love.timer.getTime Returns the value of a timer with an unspecified starting time. This function should only be used to calculate differences between points in time, as the starting time of the timer is unknown. Function Synopsis time = love.timer.getTime( ) Arguments None. Returns number time The time in seconds. Examples Checking how long something takes local start = love.timer.getTime()   -- Concatenate "bar" 1000 times. local foo = "" for _ = 1, 1000 do foo = foo .. "bar" end   -- Re

love.timer.getMicroTime

love.timer.getMicroTime Removed in LÖVE 0.9.0 love.timer.getTime is now microsecond-accurate. Returns the value of a timer with an unspecified starting time. The time is accurate to the microsecond. Function Synopsis t = love.timer.getMicroTime( ) Arguments None. Returns number t The time passed in seconds. See Also love.timer love.timer.getTime

love.timer.getFPS

love.timer.getFPS Returns the current frames per second. Function Synopsis fps = love.timer.getFPS( ) Arguments None. Returns number fps The current FPS. Examples Display text at the top left of the screen showing the current FPS. function love.draw() love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10) end See Also love.timer

love.timer.getDelta

love.timer.getDelta Returns the time between the last two frames. Function Synopsis dt = love.timer.getDelta( ) Arguments None. Returns number dt The time passed (in seconds). See Also love.timer