Lua in SpringRTS/Callins/MouseMove()

MouseMove()Edit

DescriptionEdit


Return valuesEdit

x, y, dx, dy, button

Usage exampleEdit

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


RelatedEdit


Last modified on 8 June 2011, at 20:43