< Lua in SpringRTS < Callins

MouseMove()

Description


Return values

x, y, dx, dy, button

Usage example

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 article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.