跳到內容

SpringRTS/Callins/MouseMove() 中的 Lua

來自華夏公益教科書

MouseMove()

[編輯 | 編輯原始碼]


返回值

[編輯 | 編輯原始碼]

x, y, dx, dy, button

用法示例

[編輯 | 編輯原始碼]
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



華夏公益教科書