Lua in SpringRTS/Callins/MouseMove()
From Wikibooks, open books for an open world
< Lua in SpringRTS | Callins
Contents |
MouseMove()[edit]
Description[edit]
Return values[edit]
x, y, dx, dy, button
Usage example[edit]
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
This page may need to be