Difference between revisions of "love.mousemoved"
(German Translation.) |
|||
Line 1: | Line 1: | ||
− | {{newin|[[0.9.2]]|092|type=function | + | {{newin|[[0.9.2]]|092||type=function}} |
− | + | Callback function triggered when the mouse is moved. | |
− | == | + | == Function == |
− | === | + | === Synopsis === |
<source lang="lua"> | <source lang="lua"> | ||
love.mousemoved( x, y, dx, dy ) | love.mousemoved( x, y, dx, dy ) | ||
</source> | </source> | ||
− | === | + | === Arguments === |
− | {{param|number | + | {{param|number|x|Mouse x position.}} |
− | {{param|number | + | {{param|number|y|Mouse y position.}} |
− | {{param|number | + | {{param|number|dx|The amount moved along the x-axis since the last time love.mousemoved was called.}} |
− | {{param|number | + | {{param|number|dy|The amount moved along the y-axis since the last time love.mousemoved was called.}} |
− | === | + | === Returns === |
− | + | Nothing. | |
− | == | + | == Notes == |
− | + | If [[love.mouse.setRelativeMode|Relative Mode]] is enabled for the mouse, the '''dx''' and '''dy''' arguments of this callback will update but '''x''' and '''y''' will not. | |
− | == | + | == See Also == |
− | * [[parent:: | + | * [[parent::love]] |
− | * [[ | + | * [[love.mousepressed]] |
− | * [[ | + | * [[love.mousereleased]] |
− | * [[ | + | * [[love.mouse.setPosition]] |
− | * [[ | + | * [[love.mouse.getPosition]] |
− | * [[ | + | * [[love.mouse.setRelativeMode]] |
− | * [[ | + | * [[love.mouse.getRelativeMode]] |
[[Category:Callbacks]] | [[Category:Callbacks]] | ||
− | {{#set:Description= | + | {{#set:Description=Callback function triggered when the mouse is moved.}} |
{{#set:Subcategory=General}} | {{#set:Subcategory=General}} | ||
− | == | + | == Other Languages == |
{{i18n|love.mousemoved}} | {{i18n|love.mousemoved}} |
Revision as of 10:12, 17 February 2015
Available since LÖVE 0.9.2 |
This function is not supported in earlier versions. |
Callback function triggered when the mouse is moved.
Function
Synopsis
love.mousemoved( x, y, dx, dy )
Arguments
number x
- Mouse x position.
number y
- Mouse y position.
number dx
- The amount moved along the x-axis since the last time love.mousemoved was called.
number dy
- The amount moved along the y-axis since the last time love.mousemoved was called.
Returns
Nothing.
Notes
If Relative Mode is enabled for the mouse, the dx and dy arguments of this callback will update but x and y will not.
See Also
- love
- love.mousepressed
- love.mousereleased
- love.mouse.setPosition
- love.mouse.getPosition
- love.mouse.setRelativeMode
- love.mouse.getRelativeMode
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info