GE Lua Documentation

Press F to search!

GetMouseDragDelta

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:1157
function M.GetMouseDragDelta(ImGuiMouseButton_button, float_lock_threshold)
  if ImGuiMouseButton_button == nil then ImGuiMouseButton_button = 0 end
  if float_lock_threshold == nil then float_lock_threshold = -1 end
  return imgui.GetMouseDragDelta(ImGuiMouseButton_button, float_lock_threshold)
end

Callers

@/lua/ge/extensions/editor/forestEditor.lua
          isMouseDragging = true
          local delta = im.GetMouseDragDelta(0)
          local topLeft2I = editor.screenToClient(Point2I(mouseDragStartPos.x, mouseDragStartPos.y))
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if float_lock_threshold == nil then float_lock_threshold = -1 end
  return imgui.GetMouseDragDelta(ImGuiMouseButton_button, float_lock_threshold)
end
@/lua/ge/extensions/editor/util/plotHelperUtil.lua

    local mouseDragDelta = im.GetMouseDragDelta(0)
@/lua/ge/extensions/editor/objectTool.lua
    doingRectSelection = true
    local delta = imgui.GetMouseDragDelta(0)
    local topLeft2I = editor.screenToClient(Point2I(mouseDragStartPos.x, mouseDragStartPos.y))
@/lua/ge/extensions/editor/roadEditor.lua
if isRectSelecting then
  local delta = im.GetMouseDragDelta(0)
  local topLeft2I = editor.screenToClient(Point2I(rectSelectDragMouseStartPos.x, rectSelectDragMouseStartPos.y))