Lua in SpringRTS/Callins/MouseMove()
Appearance
MouseMove()
[edit | edit source]Description
[edit | edit source]
Return values
[edit | edit source]x, y, dx, dy, button
Usage example
[edit | edit source]function widget:MousePress(x, y, button)
echo("Mouse pressed")
return true -- Pay attention to this. Without returning true the next function won't do anything
end
function widget:MouseMove(x, y, dx, dy, button)
echo("Mouse moved")
end
Related
[edit | edit source]