GE Lua Documentation

Press F to search!

IsMouseClicked

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:1135
function M.IsMouseClicked(ImGuiMouseButton_button, _repeat)
  if _repeat == nil then _repeat = false end
  return imgui.IsMouseClicked(ImGuiMouseButton_button, _repeat)
end

Callers

@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua

  if im.IsMouseClicked(0) then
    view.lastMouseDragPos = im.GetMousePos()
@/lua/ge/extensions/util/vehicleRopeDebug.lua
    -- Handle mouse input
    local mousePressed = im.IsMouseClicked(0)  -- Left mouse button
    local mouseReleased = im.IsMouseReleased(0)
@/lua/ge/extensions/editor/api/gui.lua
  if not int_mouse_button then int_mouse_button = 0 end
  return imgui.IsItemHovered() and imgui.IsMouseClicked(int_mouse_button)
end
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua

      if im.IsMouseClicked(0) then
        _enterViewMode(wndID, 1 + k)

  if im.IsMouseClicked(0) then
    if hoveredWndData then
@/lua/ge/extensions/editor/gen/region.lua
	local rayCast = cameraMouseRayCast(false)
	if im.IsMouseClicked(0) and rayCast then
		if im.IsWindowHovered(im.HoveredFlags_AnyWindow) or im.IsAnyItemHovered() then
@/lua/ge/extensions/editor/forestEditor.lua
  end
  if tool.type == var.enum_toolType.transformTool and im.IsItemHovered() and im.IsMouseClicked(1) then
    transformToolSettingsOpen = not transformToolSettingsOpen
    selectionStylePopupPos = im.ImVec2(im.GetWindowPos().x + im.GetCursorPosX(), im.GetWindowPos().y + im.GetCursorPosY() + 30)
  elseif tool.mode == var.enum_brushMode.snap and im.IsItemHovered() and im.IsMouseClicked(1) then
    snapOptionsOpen = not snapOptionsOpen
    end
    if im.IsItemHovered() == false and (im.IsMouseClicked(0) or im.IsMouseClicked(1)) then
      var.editingObject = nil
    end
    if im.IsItemHovered() == false and (im.IsMouseClicked(0) or im.IsMouseClicked(1)) then
      var.editingObject = nil
            var.gui3DMouseEvent.vec = cam.dir
            if im.IsMouseClicked(0) then
              if var.selectedTool.label == "erase" or var.selectedTool.label == "eraseSelected" then
            var.lassoHoveredNodeIndex = getLassoNodeUnderCursor()
            if im.IsMouseClicked(0)
                and editor.isViewportHovered()
            var.lassoSelectMode = var.enum_lassoSelectMode.polyline
            if im.IsMouseClicked(0)
                and editor.isViewportHovered()
              if hit then
                if im.IsMouseClicked(0)
                    and editor.isViewportHovered()

        if im.IsMouseClicked(0)
          and editor.isViewportHovered()

        if im.IsMouseClicked(0) then
          if not var.selectedForestItemDatas or #var.selectedForestItemDatas == 0 then
@/lua/ge/extensions/editor/toolUtilities/ribbonInput.lua
  -- Mouse right-click removes any placed left node.
  if im.IsMouseClicked(1) and isLeftNodePlaced then
    isLeftNodePlaced, placedLeftNode, placedLeftDepth = false, nil, 1.0
      end
      if im.IsMouseClicked(0) and not im.IsKeyDown(altKeyIdx) then
        if not isLeftNodePlaced then
@/lua/ge/extensions/editor/sceneView.lua

      if im.IsMouseClicked(0) then
        view.lastMouseDragPos = im.GetMousePos()
@/lua/ge/extensions/editor/buildingEditor.lua
	local ishit -- TODO (NOT) don't ruin the fun with camelcase, the var name is fine as-is :-D
	if im.IsMouseClicked(0) then
--            lo('?? MC:'..cameraMouseRayCast(true).object.name)
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
local function mergeMeshMouseUpdate(res)
  if im.IsMouseClicked(0) then
    if res and res.object and not im.GetIO().WantCaptureMouse then
local function selectMouseUpdate(res)
  if im.IsMouseClicked(0) then
    if res and res.object and not im.GetIO().WantCaptureMouse then
      --debugDrawer:drawSphere(res.pos, 0.6, ColorF(1,0,0,0.5))
      local doFill = not im.GetIO().KeyShift and im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
      local holdAndPaint = not im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseDown(0)
      local holdAndPaint = not im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseDown(0)
      local pipette = im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
      --dump(res)
    -- debugDrawer:drawSphere(res.pos, 0.3, ColorF(1,0,0,0.5))
    local doFill = not im.GetIO().KeyShift and im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
    local holdAndPaint = not im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseDown(0)
    local holdAndPaint = not im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseDown(0)
    local pipette = im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
    if (doFill or holdAndPaint or pipette) and res.object then
@/lua/ge/extensions/editor/mapSensorEditor.lua
  util.drawMouseSphere(pInt)
  if im.IsMouseClicked(0) then
    handleFinishPlacingSensor(pInt)
@/lua/ge/extensions/editor/sitesEditor.lua
  else
    mouseInfo.down = im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/createObjectTool.lua

  if imgui.IsMouseClicked(0)
      and editor.isViewportHovered()
@/lua/ge/extensions/editor/decalEditor.lua
    pickSphereUnderMouse(res, campos)
    if im.IsMouseClicked(0) then
      if not editor.isAxisGizmoHovered() then
@/lua/ge/extensions/editor/util/transformUtil.lua
          end
          if im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse and not editor.isAxisGizmoHovered() then
            editor.selectEditMode(editor.editModes.objectSelect)
      else
        if im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse and not editor.isAxisGizmoHovered() then
          editor.selectEditMode(editor.editModes.objectSelect)
@/lua/ge/extensions/editor/dragRaceEditor/utils.lua
  else
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/rallyEditor/drivelineTab.lua
  local isMouseDown = im.IsMouseDown(0)
  local isMouseClicked = im.IsMouseClicked(0)
@/lua/ge/extensions/editor/toolUtilities/polygon.lua
      render.markupDrag(polygon[nodeIdx]) -- Draw a special markup when the mouse is over a node.
      if im.IsMouseClicked(0) then
        selectedNodeIdx = nodeIdx
        render.markupInsertNode(mousePos) -- Draw a special markup when the mouse is over a polygon edge.
        if im.IsMouseClicked(0) then
          table.insert(polygon, idxLower + 1, vec3(mousePos)) -- Insert the new node at the correct intermediate position.
        end
        if im.IsMouseClicked(0) then
          polygon[#polygon + 1] = vec3(mousePos)
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
  else
    self.mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/sceneTree.lua
    end
    if imgui.IsMouseClicked(0) then
      clickedOnNode = true
    end
    if imgui.IsMouseClicked(1) then
      if not node.isGroup then
      end
    elseif imgui.IsMouseClicked(0) then
      return true

      if imgui.IsMouseClicked(0) and imgui.IsWindowHovered(imgui.HoveredFlags_RootAndChildWindows) then
        if not clickedOnNode and not editor.keyModifiers.ctrl then
@/lua/ge/extensions/editor/missionStartPositionEditor.lua
  -- Handle Ctrl+click for direct positioning of selected mission
  if selectedMission and mousePos3D and im.IsMouseClicked(0) and editor.keyModifiers.ctrl then
    local oldPosition = getMissionStartPosition(selectedMission)
            -- Handle selection
            if im.IsMouseClicked(0) then
              selectedMission = mission
@/lua/ge/extensions/editor/materialEditor.lua
        if im.IsItemHovered() then
          if im.IsMouseClicked(1) then
            im.OpenPopup(popupId)
            im.OpenPopup(popupId)
          elseif im.IsMouseClicked(0) then
            mu_selectedKey = (selected and nil or key)
        if im.IsItemHovered() then
          if im.IsMouseClicked(1) then
            im.OpenPopup(popupId)
            im.OpenPopup(popupId)
          elseif im.IsMouseClicked(0) then
            mu_selectedKey = (selected and nil or key)
@/lua/ge/extensions/editor/objectTool.lua
  -- move selection around the normals of terrain/objects
  if imgui.IsMouseClicked(0) or imgui.IsMouseDown(0) or draggingObjectToAlign then
    if editor.selection.object and altDown and ctrlDown and #editor.selection.object then
  -- set the mouse start pos for rect selection (if the gizmo is not hovered)
  if imgui.IsMouseClicked(0)
      and editor.isViewportHovered()
@/lua/ge/extensions/editor/mainToolbar.lua

  if im.IsItemHovered() and im.IsMouseClicked(1) then
    gridSnapSettingsOpen = not gridSnapSettingsOpen

  if im.IsItemHovered() and im.IsMouseClicked(1) then
    terrainSnapSettingsOpen = not terrainSnapSettingsOpen
          -- Handle focus loss or Escape to cancel editing
          if not im.IsItemActive() and (im.IsMouseClicked(0) or im.IsKeyPressed(im.Key_Escape)) then
            finishEditingSetName()
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veCrashTester.lua

      if im.IsMouseClicked(0) and not im.IsAnyItemHovered() and not im.IsWindowHovered(im.HoveredFlags_AnyWindow) then
        startPos = hit.pos
@/lua/ge/extensions/editor/barriersEditor.lua
local function updateEdit()
  local down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
  local hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/renderTest.lua

    if im.IsMouseClicked(0) then
      lastMouseDragPos = im.GetMousePos()
@/lua/ge/extensions/editor/rallyEditor.lua
  else
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/core/ropeVisualTest.lua
    -- Handle mouse input
    local mousePressed = im.IsMouseClicked(0)  -- Left mouse button
    local mouseReleased = im.IsMouseReleased(0)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  if _repeat == nil then _repeat = false end
  return imgui.IsMouseClicked(ImGuiMouseButton_button, _repeat)
end
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTree.lua

      if im.IsMouseClicked(0) then
        if editor.keyModifiers.shift then
    else
      if not transformingNodes and im.IsMouseClicked(0) and not editor.keyModifiers.shift then
        for _, node in ipairs(vEditor.selectedNodes) do

      if im.IsMouseClicked(0) then
        if editor.keyModifiers.shift then
    else
      if im.IsMouseClicked(0) and not editor.keyModifiers.shift then
        for _, beam in ipairs(vEditor.selectedBeams) do
@/lua/ge/extensions/editor/gen/decal.lua

    if im.IsMouseClicked(0) and inView() and rayCast then
            lo('?? D.click:'..tostring(rayCast.pos)..':'..tostring(out.pdrag)..':'..tostring(cmover)..':'..tostring(cmover and scenetree.findObjectById(cmover):getOrCreatePersistentID() or nil))

    if U._MODE == 'conf' and im.IsMouseClicked(0) and inView() then -- not im.IsWindowHovered(im.HoveredFlags_AnyWindow) and not im.IsAnyItemHovered() then
        if not rayCast or rayCast.object.name ~= 'theTerrain' then return end
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
-- imgui.TableHeadersRow()
-- if imgui.IsMouseClicked(0)
-- imgui.PushItemWidth(filterTypeComboWidth)
                                        -- show beams
                                        if im.IsMouseClicked(0) then
--                                            lo('?? CLICKLLL:')
                                                -- highlight beam
                                                if im.IsMouseClicked(0) then
                                                    lo('?? beam_CLICK:'..i)
--    if not W.out.up then return end
    if im.IsMouseClicked(0) then
        if editor.keyModifiers.shift then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veFlexbodyDebug.lua

  local leftClicked = im.IsMouseClicked(0)

  local leftClicked = im.IsMouseClicked(0)
@/lua/ge/extensions/editor/flowgraph/overview.lua
              fge.NavigateToSelection(false, 0.3)
            elseif im.IsMouseClicked(1) then
              --print("fge_mgr_win_overview.lua >> RMB")
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imButton.lua
  if im.IsItemHovered() then
    local down = im.IsMouseClicked(0)
    local hold = im.IsMouseDown(0)
@/lua/ge/extensions/editor/trafficSignalsEditor.lua

    if im.IsMouseClicked(0) then
      local act = {pos = vec3(mousePos), controllerId = lastUsed.controllerId, sequenceId = lastUsed.sequenceId}

    if editor.isViewportHovered() and im.IsMouseClicked(0) and not editor.isAxisGizmoHovered() and not editor.keyModifiers.shift then
      for i, instance in ipairs(instances) do
@/lua/ge/extensions/editor/camPathEditor.lua

  if im.IsMouseClicked(0) then
    if hoveredMarker then
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
  end]]
  if im.IsMouseClicked(0) then
    self.selectedButtonListIndex = nil
@/lua/ge/extensions/editor/trafficManager.lua

  if not isDragging and im.IsMouseClicked(0) then
    anchorPos:set(mousePos)
          local rayCastInfo = cameraMouseRayCast(true, bit.bor(SOTStaticShape, SOTStaticObject))
          if rayCastInfo and im.IsMouseClicked(0) and editor.isViewportHovered() and not editor.isAxisGizmoHovered() then
            local hoveredObject = rayCastInfo.object
@/lua/ge/extensions/util/maptiles.lua
        if im.IsMouseHoveringRect(im.ImVec2(x, y), im.ImVec2(x + cellWidth, y + cellHeight)) then
          if im.IsMouseClicked(0) then
            -- Jump to the tile when clicked
@/lua/ge/extensions/editor/util/editorElementHelper.lua
  else
    self.mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/api/valueInspector.lua
local function setFilenameContextMenu(fieldName, fieldType, fieldValue, arrayIndex, customData, pasteCallback, contextMenuUI)
  if imgui.IsItemHovered() and imgui.IsMouseClicked(1) then
    filenameContextMenu.open = true
local function setCopyPasteMenu(fieldName, fieldType, fieldValue, arrayIndex, customData, pasteCallback, contextMenuUI)
  if imgui.IsItemHovered() and imgui.IsMouseClicked(1) then
    copyPasteMenu.open = true
@/lua/ge/extensions/editor/terrainEditor.lua
              if im.IsItemHovered(im.HoveredFlags_AllowWhenBlockedByActiveItem) then
                if im.IsMouseClicked(0) then
                  potentialDragDropPayload = index
        im.tooltip(string.format("%.2f", var.softSelectFilter[i]))
        if im.IsMouseClicked(0) then
          var.sc_dragId = i
          -- Mouse down.
          if im.IsMouseClicked(0) and hit then
            terrainEditor:on3DMouseDown(gui3DMouseEvent)
        debugDrawer:drawSphere(hit.pos, 0.1, ColorF(1,0,0,1))
        if im.IsMouseClicked(0) then
          var.brushHeightPicking = false
          end
        elseif im.IsMouseClicked(1) then
          var.brushHeightPicking = false
@/lua/ge/extensions/editor/roadEditor.lua
    -- Mouse click on map
    if im.IsMouseClicked(0) and not (im.IsAnyItemHovered() or im.IsWindowHovered(im.HoveredFlags_AnyWindow)) then
      if editor.keyModifiers.alt then

  if im.IsMouseClicked(0) and not (im.IsAnyItemHovered() or im.IsWindowHovered(im.HoveredFlags_AnyWindow) or editor_inspector.comboMenuOpen) then
    dragMouseStartPos = vec3(im.GetMousePos().x, im.GetMousePos().y, 0)
@/lua/ge/extensions/core/vehicleTriggers.lua

                        if im.IsItemHovered() and im.IsMouseClicked(0) then
                          local actionsExecuted = executeLink(vData.vdata, lnk, 1, vehId)
                        im.SmallButton('trigger##lnk_'..tostring(lnk.cid)..'_'..tostring(vehId))
                        if im.IsItemHovered() and im.IsMouseClicked(0) then
                          local actionsExecuted = executeLink(vData.vdata, lnk, 1, vehId)
                im.SmallButton('trigger##u'..tostring(evt.cid)..'_'..tostring(vehId))
                if im.IsItemHovered() and im.IsMouseClicked(0) and evt.onDown then
                  queueCmd(vehId, evt.onDown)
                      im.SmallButton('trigger##u'..tostring(lnk.cid)..'_'..tostring(vehId))
                      if im.IsItemHovered() and im.IsMouseClicked(0) then
                        local actionsExecuted = executeLink(vData.vdata, lnk, 1, vehId)
                      im.SmallButton('trigger##u'..tostring(lnk.cid)..'_'..tostring(vehId))
                      if im.IsItemHovered() and im.IsMouseClicked(0) then
                        local actionsExecuted = executeLink(vData.vdata, lnk, 1, vehId)
@/lua/ge/extensions/editor/driftDataEditor.lua
  else
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/raceEditor.lua
  else
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/roadArchitect.lua
  local mousePos = util.mouseOnMapPos()
  local isMouseClickedL, isMouseClickedR, isMouseDownL = im.IsMouseClicked(0), im.IsMouseClicked(1), im.IsMouseDown(0)
  local dt = mouseTimer:stopAndReset()
  local mousePos = util.mouseOnMapPos()
  local isMouseClickedL, isMouseClickedR, isMouseDownL = im.IsMouseClicked(0), im.IsMouseClicked(1), im.IsMouseDown(0)
  local dt = mouseTimer:stopAndReset()
@/lua/ge/extensions/editor/toolUtilities/splineInput.lua
            render.markupSelectSpline(targetSpline.nodes[hoverNodeIdx]) -- Show selection prompt.
            if im.IsMouseClicked(0) then -- Only switch tools on click, not hover.
              local getSplinesFn = tool.getSplines
          end
          if im.IsMouseClicked(0) then
              out.spline, out.node = actualHoverSplineIdx, hoverNodeIdx
          end
          if im.IsMouseClicked(0) then
            local nodeIdx = ceil(ribIdx * 0.5)
          end
          if im.IsMouseClicked(0) then
            if not spline.isLink then -- Only allow bar dragging if the spline is not linked.
          end
          if im.IsMouseClicked(0) then
            local splinePre = deepCopyFunct(selSpline)
        end
        if im.IsMouseClicked(0) and not selSpline.isLoop and not selSpline.isLink then
          local statePre = deepCopyFunct(selSpline)
      end
      if im.IsMouseClicked(0) then
        local statePre = deepCopyFunct(selSpline)
        end
        if im.IsMouseClicked(0) then
          dragStatePre = deepCopyFunct(selSpline)
@/lua/ge/extensions/editor/resourceChecker.lua
                if im.TreeNode1("  Material: "..l) then
                  if im.IsItemHovered() and im.IsMouseClicked(1) then
                    im.OpenPopup("Popup_"..l..count)
                    if j ~= "Stages" then im.Text(j..": "..tostring(c)) end
                    if im.IsItemHovered() and im.IsMouseClicked(1) then
                      im.OpenPopup("Popup_"..l..count)
                                    texHovered(x)
                                    if im.IsMouseClicked(1) then
                                      im.OpenPopup("Popup_"..l..count)
                                end
                                if im.IsItemHovered() and im.IsMouseClicked(1) then
                                  im.OpenPopup("Popup_"..l..count)
                            end
                            if im.IsItemHovered() and im.IsMouseClicked(1) then
                              im.OpenPopup("Popup_"..l..count)
                        im.TreePop()
                        if im.IsItemHovered() and im.IsMouseClicked(1) then
                          im.OpenPopup("Popup_"..l..count)
                      end
                      if im.IsItemHovered() and im.IsMouseClicked(1) then
                        im.OpenPopup("Popup_"..l..count)
                  im.TreePop()
                  if im.IsItemHovered() and im.IsMouseClicked(1) then
                    im.OpenPopup("Popup_"..l..count)
                end
                if im.IsItemHovered() and im.IsMouseClicked(1) then
                  im.OpenPopup("Popup_"..l..count)
                end
                if im.IsItemHovered() and im.IsMouseClicked(1) then
                  im.OpenPopup("Popup_" .. i..count)
                end
                if im.IsItemHovered() and im.IsMouseClicked(0) then
                  if not im.IsKeyDown(im.GetKeyIndex(im.Key_ModShift)) then
                      end
                      if im.IsItemHovered() and im.IsMouseClicked(1) then
                        im.OpenPopup("Popup_" .. d..count)
                      end
                      if im.IsItemHovered() and im.IsMouseClicked(0) then
                        if not im.IsKeyDown(im.GetKeyIndex(im.Key_ModShift)) then
                            end
                            if im.IsItemHovered() and im.IsMouseClicked(1) then
                              if path then
                            end
                            if im.IsItemHovered() and im.IsMouseClicked(0) then
                              if not im.IsKeyDown(im.GetKeyIndex(im.Key_ModShift)) then
      end
      if im.IsItemHovered() and im.IsMouseClicked(1) then
        if testName == "matVersion" or testName == "unusedMat" or testName == "usedMat" then
      end
      if im.IsItemHovered() and im.IsMouseClicked(0) then
        if not im.IsKeyDown(im.GetKeyIndex(im.Key_ModShift)) then
@/lua/ge/extensions/editor/util/plotHelperUtil.lua
  end
  if im.IsMouseClicked(0) then
    self.mouseDownInGraph = self.mouseInGraph
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veVehicleSpawner.lua

      if im.IsMouseClicked(0) and not im.IsAnyItemHovered() and not im.IsWindowHovered(im.HoveredFlags_AnyWindow) then
        startPos = hit.pos
@/lua/ge/extensions/editor/scriptAIEditor.lua
  end
  if im.IsAnyItemHovered() == false and im.IsWindowHovered(im.HoveredFlags_AnyWindow) == false and im.IsMouseClicked(0) == true then
    local oldNodes = {}
          drawVehBox(boxData, true)
          if im.IsAnyItemHovered() == false and im.IsWindowHovered(im.HoveredFlags_AnyWindow) == false and im.IsMouseClicked(0) == true then
            mState.vehSelectData = {
      drawCamBox(boxPos, boxRot, true)
      if im.IsAnyItemHovered() == false and im.IsWindowHovered(im.HoveredFlags_AnyWindow) == false and im.IsMouseClicked(0) == true then
        mState.camSelectData = {
      highlightLockSectTraj(poly, lLock, uLock)
      if im.IsAnyItemHovered() == false and im.IsWindowHovered(im.HoveredFlags_AnyWindow) == false and im.IsMouseClicked(0) == true then
        trajectories[trClosest].selectedNode = nClosest
@/lua/ge/extensions/editor/gen/terrain.lua

    if im.IsMouseClicked(0) and U.inView() and rayCast then
            lo('?? Ter.click:'..#aregion)
@/lua/ge/extensions/editor/assetBrowser.lua
  -- Cancel drag and drop action.
  -- if im.IsMouseClicked(1) then
  --   onDragEnded(true)
      -- LMB
      elseif im.IsMouseClicked(0) then
        selectAsset(file)
      -- RMB
      elseif im.IsMouseClicked(1) then
        im.OpenPopup("Popup_" .. file.path .. "_" .. file.fullFileName)
      -- LMB
      elseif im.IsMouseClicked(0) then
        selectAsset(file)
      -- RMB
      elseif im.IsMouseClicked(1) then
        im.OpenPopup("Popup_" .. file.path .. "_" .. file.fullFileName)

        elseif im.IsMouseClicked(0) then
          if type.active[0] == true then type.active[0] = false else type.active[0] = true end
@/lua/ge/extensions/editor/biomeTool.lua
  local wasDrawingLassoArea = false
  if imgui.IsMouseClicked(0) and isDrawingLassoArea
      and editor.isViewportHovered()
  if hit and not isDrawingLassoArea then
    if imgui.IsMouseClicked(0)
        and editor.isViewportHovered()
@/lua/ge/extensions/editor/crawlEditor/input.lua
  else
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/gen/exp_solidflex.lua
        local click
        if inview and im.IsMouseClicked(0) then
            click = -1
]]
        elseif inview and im.IsMouseClicked(1) then
            click = 1
@/lua/ge/extensions/flowgraph/nodes/debug/cameraMouseRayCast.lua
      self.pinOut.pos.value = {hit.pos.x,hit.pos.y,hit.pos.z}
      self.pinOut.clicking.value = im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
      self.pinOut.hold.value = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/gameplay/rally/test/testRouteFix.lua
  end
  if im.IsMouseClicked(0) then
    dump(mousePos)
@/lua/ge/extensions/editor/meshEditor.lua
    -- Mouse click on map
    if im.IsMouseClicked(0) and not (im.IsAnyItemHovered() or im.IsWindowHovered(im.HoveredFlags_AnyWindow)) then
      if editor.keyModifiers.alt then

  if im.IsMouseClicked(0) and not (im.IsAnyItemHovered() or im.IsWindowHovered(im.HoveredFlags_AnyWindow)) then
    if not editor.keyModifiers.alt then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua

  local leftClicked = im.IsMouseClicked(0)
  local imguiNotHovered = not im.IsAnyItemHovered() and not im.IsWindowHovered(im.HoveredFlags_AnyWindow)

  local leftClicked = im.IsMouseClicked(0)
  local imguiNotHovered = not im.IsAnyItemHovered() and not im.IsWindowHovered(im.HoveredFlags_AnyWindow)
@/lua/ge/extensions/editor/slotTrafficEditor.lua
      -- Mouse click on map
      if im.IsMouseClicked(0) and not (im.IsAnyItemHovered() or im.IsWindowHovered(im.HoveredFlags_AnyWindow)) then
        if editor.keyModifiers.alt then
    -- Handle mouse click
    if im.IsMouseClicked(0) and not (im.IsAnyItemHovered() or im.IsWindowHovered(im.HoveredFlags_AnyWindow)) then
      dragMouseStartPos = vec3(im.GetMousePos().x, im.GetMousePos().y, 0)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePropTransformer.lua

  local leftClicked = im.IsMouseClicked(0)
  local imguiNotHovered = not im.IsAnyItemHovered() and not im.IsWindowHovered(im.HoveredFlags_AnyWindow)
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
    util.drawMouseSphere(pInt)
    if im.IsMouseClicked(0) then
      handleFinishPlacingSensor(pInt - vehicle.veh:getPosition())
@/lua/ge/extensions/editor/gen/world.lua
--                end
--        if im.IsMouseClicked(0) then
--            lo('?? for_RCSDSS:'..tostring(cameraMouseRayCast(true).object.name)..':'..tostring(cameraMouseRayCast(false).object.name))
@/lua/ge/extensions/editor/gen/network.lua

    if im.IsMouseClicked(0) then
        local rayCast = cameraMouseRayCast(true)