{{newin|[[0.9.2]]|092||type=function}}
Callback function triggered when the mouse is moved.
== Function ==
=== Synopsis ===
<source lang="lua">
love.mousemoved( x, y, dx, dy, istouch )
</source>
=== Arguments ===
{{param|number|x|The mouse position on the x-axis.}}
{{param|number|y|The mouse position on the y-axis.}}
{{param|number|dx|The amount moved along the x-axis since the last time love.mousemoved was called.}}
{{param|number|dy|The amount moved along the y-axis since the last time love.mousemoved was called.}}
{{New feature|0.10.0|
{{param|boolean|istouch|True if the mouse button press originated from a touchscreen touch-press.}}
|100}}
=== 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''' are not guaranteed to.
== See Also ==
* [[parent::love]]
* [[love.mousepressed]]
* [[love.mousereleased]]
* [[love.mouse.setPosition]]
* [[love.mouse.getPosition]]
* [[love.mouse.setRelativeMode]]
* [[love.mouse.getRelativeMode]]
[[Category:Callbacks]]
{{#set:Description=Callback function triggered when the mouse is moved.}}
{{#set:Subcategory=Mouse}}
== Other Languages ==
{{i18n|love.mousemoved}}