love.audio.setPosition

love.audio.setPosition Sets the position of the listener, which determines how sounds play. Function Synopsis love.audio.setPosition( x, y, z ) Arguments number x The x position of the listener. number y The y position of the listener. number z The z position of the listener. Returns Nothing. Remarks Setting a position only works for mono sources. WAV files are always loaded as stereo, OGG works fine. See Also love.audio Source:setPosition

love.filesystem.setIdentity

love.filesystem.setIdentity Sets the write directory for your game. Note that you can only set the name of the folder to store your files in, not the location. Function Synopsis love.filesystem.setIdentity( name ) Arguments string name The new identity that will be used as write directory. Returns Nothing. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis love.filesystem.setIdentity( name, appendToPath ) Arguments string name The new ident

SoundData:getSampleCount

SoundData:getSampleCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the number of samples per channel of the SoundData. Function Synopsis count = SoundData:getSampleCount( ) Arguments None. Returns number count Total number of samples. See Also SoundData

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

love.keyboard.isScancodeDown Available since LÖVE 0.10.0 This function is not supported in earlier versions. Checks whether the specified Scancodes are pressed. Not to be confused with love.keypressed or love.keyreleased. Unlike regular KeyConstants, Scancodes are keyboard layout-independent. The scancode "w" is used if the key in the same place as the "w" key on an American keyboard is pressed, no matter what the key is labelled or what the user's operating system settings are. Function

love.mouse.hasCursor

love.mouse.hasCursor Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets whether cursor functionality is supported. If it isn't supported, calling love.mouse.newCursor and love.mouse.getSystemCursor will cause an error. Mobile devices do not support cursors. Function Synopsis hascursor = love.mouse.hasCursor( ) Arguments None. Returns boolean hascursor Whether the system has cursor functionality. See Also love.mouse

love.filesystem.getWorkingDirectory

love.filesystem.getWorkingDirectory Gets the current working directory. Function Synopsis cwd = love.filesystem.getWorkingDirectory( ) Arguments None. Returns string cwd The current working directory. See Also love.filesystem

Contact:setRestitution

Contact:setRestitution Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the contact restitution. Function Synopsis Contact:setRestitution( restitution ) Arguments number restitution The contact restitution. Returns Nothing. See Also Contact