Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.mouse.getPosition( )
This function returns two parameters. Since getting the mouse position is a very common task, this function makes that process slighly prettier and and more LOVEley for everyone. See the example below for usage!
Usage
love.mouse.getPosition( )
Arguments
None
Returns
numberThe current x position.
numberThe current y position.
Examples
Example 1: local x, y = love.graphics.getPosition()