GE Lua Documentation

Press F to search!

GetIO

Definition


-- @/lua/common/extensions/ui/imgui_custom_luaintf.lua:162

  function M.GetIO() return imgui.GetIO() end

Callers

@/lua/common/extensions/ui/imguiUtils.lua
  imgui.uiscale[0] = finalScale
  local io = imgui.GetIO(io)
  imgui.ImGuiIO_FontGlobalScale(io, imgui.uiscale[0])
    --  -- assumes font 2 is monospaced
    --  local f = ffi.cast("ImFont*", imgui.GetIO().Fonts.Fonts.Data) -- Data is an ImVector, so do some pointer math
    --  print('font 1: ' .. tostring(f))
@/lua/ge/extensions/editor/api/valueInspector.lua
    local mousePos = imgui.GetMousePos()
    local displaySize = imgui.GetIO().DisplaySize
    local mainViewPos = imgui.GetMainViewport().Pos
    if editor.getPreference("ui.general.inspectorFieldNameHoverCopyPaste") == true then
      local io = imgui.GetIO()
      if io.KeyCtrl then
@/lua/ge/extensions/editor/forestEditor.lua
    local hit
    if im.GetIO().WantCaptureMouse == false then
      hit = cameraMouseRayCast(false, im.flags(SOTTerrain))
    if var.selectedTool.type == var.enum_toolType.brush then
      if im.GetIO().WantCaptureMouse == false then
        if (var.selectedForestBrushes and #var.selectedForestBrushes > 0) or
            end
            if im.GetIO().MouseDelta.x ~= 0 or im.GetIO().MouseDelta.y ~= 0 then
              if im.IsMouseDown(0) then
            end
            if im.GetIO().MouseDelta.x ~= 0 or im.GetIO().MouseDelta.y ~= 0 then
              if im.IsMouseDown(0) then
        local hit
        if im.GetIO().WantCaptureMouse == false then
          hit = cameraMouseRayCast(false, im.flags(SOTTerrain))
    else -- instantiate single forest item
      if im.GetIO().WantCaptureMouse == false then
        local hit = cameraMouseRayCast(false, nil, rayRange)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua
    -- zooming
    local w = im.GetIO().MouseWheel
    if view.ortho[0] then
      view.dragMode = 'translate'
      if im.GetIO().KeyShift then
        view.dragMode = 'rotate'
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veCrashTester.lua
    -- Choosing start rotation
    local io = im.GetIO()
@/lua/ge/extensions/editor/materialEditor.lua

        if not im.GetIO().WantCaptureMouse and editor.isViewportHovered() and not editor.isAxisGizmoHovered() then
          if core_forest.getForestObject() and not worldEditorCppApi.getClassIsSelectable("Forest") then core_forest.getForestObject():disableCollision() end
@/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
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if mouseInfo.down then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePropTransformer.lua
    if state then
      local io = im.GetIO()
      state.propSelectorIdx = clamp(state.propSelectorIdx + clamp(io.MouseWheel, -1, 1), 1, state.propSelectorCount - 1)
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
  if im.IsItemHovered() then
    local wheel = im.GetIO().MouseWheel
    local isShiftHeld = im.IsKeyDown(im.GetKeyIndex(im.Key_ModShift))
@/lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua
    if im then
      local io = im.GetIO(io)
      im.SetWindowFontScale(1/io.FontGlobalScale)
@/lua/ge/extensions/editor/roadArchitect.lua
    local roadPre = copyDataState()
    roadMgr.setLocalWidth(mfe.selectedRoadIdx, mfe.selectedNodeIdx, im.GetIO().MouseWheel * 0.1)
    local roadPost = copyDataState()
  -- If the user wants to increase the node width by dragging the mouse.
  if isCtrlDown and not isMouseDownL and abs(im.GetIO().MouseWheel) > 0.01 then
    handleNodeWidthChangeOnDrag()
@/lua/ge/extensions/editor/shapeEditor.lua
  else
    uiScale = ui_imgui.GetIO().FontGlobalScale
  end
@/lua/ge/extensions/editor/preferences.lua
local imguiUtils = require('ui/imguiUtils')
local imguiIO = imgui.GetIO()
local currentCategoryName = nil
@/lua/ge/extensions/editor/flowgraph/overview.lua
            self.mgr:selectGraph(node.graph)
            self:selectNode(node, im.GetIO().KeyCtrl)
          end
@/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
    mouseInfo.down = im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up   = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up   = im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if mouseInfo.down then
@/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
    self.mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if self.mouseInfo.down then
@/lua/ge/extensions/ui/console.lua
  else
    uiScale = ui_imgui.GetIO().FontGlobalScale
  end
@/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
      self.pinOut.clicking.value = im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
      self.pinOut.hold.value = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    else
@/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
    self.mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    self.mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if self.mouseInfo.down then
@/lua/ge/extensions/editor/api/gizmo.lua

  if not imgui.IsMouseDown(0) and  not imgui.IsMouseDown(1) and not imgui.IsMouseDown(2) and not imgui.GetIO().WantCaptureMouse then
    editor.objectIconHoverId = editor.objectIconHitId
        and editor.isViewportHovered()
        and not imgui.GetIO().WantCaptureMouse then
@/lua/ge/extensions/editor/layoutManager.lua
local imguiUtils = require('ui/imguiUtils')
local imguiIO = imgui.GetIO()
local defaultDirectory = "settings/editor/layouts/Default"
@/lua/ge/extensions/editor/terrainEditor.lua
        if im.Button(map.path, im.ImVec2(btnWidth, var.inputWidgetHeight)) then
          if im.GetIO().KeyCtrl == true then
            toggleTextureMap(map, true)
        if im.Selectable1(tbName, tbData.selected) then
          if im.GetIO().KeyCtrl == true then
            toggleTerrainBlock(tbData, true)
    if var.sc_dragId ~= nil then
      local delta = im.GetIO().MouseDelta.y / (var.sc_curveWidgetSize - editor.getPreference("terrainEditor.general.brushSoftnessCurveKnotSize"))
      var.softSelectFilter[var.sc_dragId] = var.softSelectFilter[var.sc_dragId] - (im.GetIO().MouseDelta.y / (var.sc_curveWidgetSize - editor.getPreference("terrainEditor.general.brushSoftnessCurveKnotSize")))
      local delta = im.GetIO().MouseDelta.y / (var.sc_curveWidgetSize - editor.getPreference("terrainEditor.general.brushSoftnessCurveKnotSize"))
      var.softSelectFilter[var.sc_dragId] = var.softSelectFilter[var.sc_dragId] - (im.GetIO().MouseDelta.y / (var.sc_curveWidgetSize - editor.getPreference("terrainEditor.general.brushSoftnessCurveKnotSize")))
      if var.softSelectFilter[var.sc_dragId] < 0 then
  var.style = im.GetStyle()
  var.io = im.GetIO()
  var.fontSize = math.ceil(im.GetFontSize())
  local hit
  if im.GetIO().WantCaptureMouse == false then
    hit = cameraMouseRayCast(false, im.flags(SOTTerrain))

        if not brushCenter or im.GetIO().MouseDelta.x ~= 0 or im.GetIO().MouseDelta.y ~= 0 then
          brushCenter = hit and hit.pos or nil

        if not brushCenter or im.GetIO().MouseDelta.x ~= 0 or im.GetIO().MouseDelta.y ~= 0 then
          brushCenter = hit and hit.pos or nil
          -- Mouse drag.
          if im.GetIO().MouseDelta.x ~= 0 or im.GetIO().MouseDelta.y ~= 0 then
            if im.IsMouseDown(0) and startDragHeight then
          -- Mouse drag.
          if im.GetIO().MouseDelta.x ~= 0 or im.GetIO().MouseDelta.y ~= 0 then
            if im.IsMouseDown(0) and startDragHeight 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/vehicleEditor/liveEditor/veVehicleSpawner.lua
    -- Choosing start rotation
    local io = im.GetIO()
@/lua/ge/extensions/editor/veMain.lua
local function sceneMetric()
  local io = im.GetIO()
  local fps = fpsSmoother:get(io.Framerate)
@/lua/common/extensions/ui/imgui_custom_luaintf.lua

  function M.GetImGuiIO_FontAllowUserScaling() return imgui.GetIO().FontAllowUserScaling end
@/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
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if mouseInfo.down then
@/lua/ge/extensions/editor/rallyEditor/drivelineTab.lua
  -- Don't interact if ImGui wants the mouse (hovering over UI)
  if im.GetIO().WantCaptureMouse then
    return
@/lua/ge/extensions/editor/sceneView.lua
        -- zooming
        local w = im.GetIO().MouseWheel
        if view.ortho[0] then
          view.dragMode = 'translate'
          if im.GetIO().KeyShift then
            view.dragMode = 'rotate'
@/lua/ge/extensions/editor/flowgraph/garbageDebug.lua
      plotHelperUtil:setSeriesColors({{1,1,1,1},{0,0,1,1}})
      plotHelperUtil:draw(im.GetContentRegionAvailWidth(),250, im.GetIO().DeltaTime)
      im.Text(string.format("Change | Avg: %d | Q25: %d | Q75: %d | Q90: %d   | (only active)", entry.averageChange or -1, entry.q25 or -1, entry.q50 or -1, entry.q75 or -1))
      plotHelperUtil:setSeriesColors({{1,0,0,1},{0,0,1,1}})
      plotHelperUtil:draw(im.GetContentRegionAvailWidth(),250, im.GetIO().DeltaTime)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
    -- zooming
    local w = im.GetIO().MouseWheel
    if mainRVData.ortho[0] then
@/lua/ge/extensions/editor/vizHelper.lua
      local sens = mouseWheelSensitivity
      if im.GetIO().KeyShift then
        sens = sens * 10
      end
      if im.GetIO().KeyAlt then
        -- alt = change type
        -- alt = change type
        local w = im.GetIO().MouseWheel
        if w >= 1 then
        end
      elseif im.GetIO().KeyCtrl then
        -- scale
        -- scale
        scale[0] = scale[0] + im.GetIO().MouseWheel * sens
        if scale[0] < 0.01 then scale[0] = 0.01 end
        -- rotate
        rotation[0] = rotation[0] + im.GetIO().MouseWheel * sens
        if rotation[0] < 0 then

    if not im.GetIO().WantCaptureMouse and im.IsMouseDown(0) then
      if (lastPos - focusPos):length() >= minDistance[0] then
@/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
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if mouseInfo.down then
@/lua/ge/extensions/editor/assetBrowser.lua
  var.style = im.GetStyle()
  var.io = im.GetIO()
@/lua/ge/extensions/editor/biomeTool.lua
    local hit
    if imgui.GetIO().WantCaptureMouse == false then
      hit = cameraMouseRayCast(false, imgui.flags(SOTTerrain))
  if imgui.IsItemActive() then
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = levelBiomeToolbarHeight + imgui.GetIO().MouseDelta.y
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = levelBiomeToolbarHeight + imgui.GetIO().MouseDelta.y
      levelBiomeToolbarHeight = clamp(newHeightVal, 50, 1000)
  if imgui.IsItemActive() then
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = levelBiomeLevelsListHeight + imgui.GetIO().MouseDelta.y
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = levelBiomeLevelsListHeight + imgui.GetIO().MouseDelta.y
      levelBiomeLevelsListHeight = clamp(newHeightVal, 50, 1000)
  if imgui.IsItemActive() then
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = levelBiomeLevelPropsHeight + imgui.GetIO().MouseDelta.y
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = levelBiomeLevelPropsHeight + imgui.GetIO().MouseDelta.y
      levelBiomeLevelPropsHeight = clamp(newHeightVal, 50, 1000)
  if imgui.IsItemActive() then
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = biomeAreasToolbarHeight + imgui.GetIO().MouseDelta.y
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = biomeAreasToolbarHeight + imgui.GetIO().MouseDelta.y
      biomeAreasToolbarHeight = clamp(newHeightVal, 50, 1000)
  if imgui.IsItemActive() then
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = biomeAreasLevelsListHeight + imgui.GetIO().MouseDelta.y
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = biomeAreasLevelsListHeight + imgui.GetIO().MouseDelta.y
      biomeAreasLevelsListHeight = clamp(newHeightVal, 50, 1000)
  if imgui.IsItemActive() then
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = biomeAreasLevelPropsHeight + imgui.GetIO().MouseDelta.y
    if imgui.GetIO().MouseDelta.y ~= 0 and imgui.IsMouseDown(0)then
      local newHeightVal = biomeAreasLevelPropsHeight + imgui.GetIO().MouseDelta.y
      biomeAreasLevelPropsHeight = clamp(newHeightVal, 50, 1000)
  local hit
  if imgui.GetIO().WantCaptureMouse == false then
    hit = cameraMouseRayCast(false, imgui.flags(SOTTerrain))
@/lua/ge/extensions/editor/api/gui.lua
local function checkWindowResize()
  local imguiIO = imgui.GetIO()
  if not displaySize then displaySize = {x=imguiIO.DisplaySize.x, y=imguiIO.DisplaySize.y} end
  -- enable the dockspace
  local io = imgui.GetIO()
  local dispErase = ffi.string(text):len() > 0
  local uiScale = ui_imgui.GetIO().FontGlobalScale --editor.getPreference("ui.general.scale")
  local imgsize = (imgui.CalcTextSize("yes").y + style.FramePadding.y * 2)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTree.lua
        end
        if not im.GetIO().KeyCtrl then
          _clearNodeSelection(ast.transient.luaData)
        _highlightAstNode(node.__astNodeIdx)
        if not im.GetIO().KeyCtrl then
          _clearNodeSelection(ast.transient.luaData)
@/lua/ge/extensions/editor/renderTest.lua

    local w = im.GetIO().MouseWheel
    fov[0] = fov[0] - w * 10
@/lua/ge/extensions/editor/inspector.lua

        if imgui.GetIO().KeyCtrl then
          imgui.tooltip(obj:getClassDocString())
@/lua/ge/extensions/editor/api/core.lua
  editor.quitGame = quitGame
  editor.getDeltaTime = function() return imgui.GetIO().DeltaTime end
  editor.deleteObject = deleteObject
@/lua/ge/extensions/editor/buildingEditor.lua

	local w = im.GetIO().MouseWheel
	if w ~= 0 then
@/lua/ge/extensions/editor/sceneTree.lua
          and not imgui.IsMouseDown(0)
          and (socket.gettime() - node.renameRequestTime) > imgui.GetIO().MouseDoubleClickTime
          and node.name ~= "MissionGroup" then
@/lua/ge/extensions/editor/util/plotHelperUtil.lua
function C:draw(width, height, dt)
  self.io = im.GetIO()
  self.mousePos = self.io.MousePos
@/lua/ge/extensions/editor/objectTool.lua
  if not editor.isAxisGizmoHovered()
    and not imgui.GetIO().WantCaptureMouse
    and not imgui.IsAnyItemActive() then
        mtxCorrection:setFromEuler(vec3((90 * math.pi) / 180.0, 0, 0))
        angleAroundUpValue = angleAroundUpValue + imgui.GetIO().MouseWheel * 5 -- TODO: add this to prefs
        mtxAngleAroundUp:setFromEuler(vec3(0, 0, (angleAroundUpValue * math.pi) / 180.0))
      and editor.isViewportHovered()
      and not imgui.GetIO().WantCaptureMouse
      and not imgui.IsAnyItemActive() then
          and imgui.IsMouseReleased(0)
          and not imgui.GetIO().WantCaptureMouse
          and editor.isViewportHovered()
      and editor.isViewportHovered()
      and not imgui.GetIO().WantCaptureMouse
      and not editor.isAxisGizmoHovered() then

  if mouseDragStartPos and doingRectSelection and imgui.IsMouseReleased(0) and not imgui.GetIO().WantCaptureMouse then
    mouseDragStartPos = nil
@/lua/ge/extensions/editor/flowgraph/main.lua

    local io = im.GetIO()
    local fps = self.fpsSmoother:get(io.Framerate)
function C:isMouseHovering()
  local mousePos = im.GetIO().MousePos
  if (mousePos.x >= self.windowPos.x and mousePos.x <= (self.windowPos.x + self.windowSize.x)) and (mousePos.y >= self.windowPos.y and mousePos.y <= (self.windowPos.y + self.windowSize.y)) then
@/lua/ge/extensions/flowgraph/nodes/debug/multiFlow.lua

  local activeBool = self.pinIn.a.value -- (im.GetIO().Framerate)
  local activeColor = im.ImVec4(0, 1, 0, (activeBool and 1 or 0.5))

  activeBool = self.pinIn.b.value -- (im.GetIO().Framerate)
  activeColor = im.ImVec4(1, 1, 0, (activeBool and 1 or 0.5))

    activeBool = self.pinIn.c.value -- (im.GetIO().Framerate)
  activeColor = im.ImVec4(1, 0, 0, (activeBool and 1 or 0.5))

    activeBool = self.pinIn.d.value -- (im.GetIO().Framerate)
  activeColor = im.ImVec4(1, 0, 1, (activeBool and 1 or 0.5))
@/lua/ge/extensions/editor/dragRaceEditor/utils.lua
    im.TextColored(constants.CONSTANTS.COLORS.ERROR, "Error: " .. lastError)
    state.setErrorTimeout(errorTimeout - im.GetIO().DeltaTime)
    if state.getErrorTimeout() <= 0 then
  else
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if mouseInfo.down then
@/lua/ge/extensions/editor/mainMenu.lua
local function sceneMetric()
  local io = imgui.GetIO()
  local fps = fpsSmoother:get(io.Framerate)
@/lua/ge/extensions/editor/raceEditor/pathnodes.lua
  local radScale = 1
  if self.mouseInfo.rayCast and self.mouseInfo.rayCast.pos and not im.GetIO().WantCaptureMouse then
    local txt = "Add Pathnode from Navgraph"
@/lua/ge/extensions/editor/gen/terrain.lua

    local w = im.GetIO().MouseWheel
	if w ~= 0 and editor.keyModifiers.ctrl then
@/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
  local down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
  local hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
@/lua/ge/extensions/editor/createObjectTool.lua
      editor.disableModifyFadeIconsDistance = true
      angleAroundUpValue = angleAroundUpValue + imgui.GetIO().MouseWheel * 5 -- TODO: add this to prefs
    end
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
local function CtrlShiftButton(currentValue, normalStep, littleStep, bigStep, min, max, sign)
  local shift = im.GetIO().KeyShift
  local ctrl  = im.GetIO().KeyCtrl
  local shift = im.GetIO().KeyShift
  local ctrl  = im.GetIO().KeyCtrl
  local ret = currentValue

    if not im.GetIO().KeyCtrl then
      local info = tb.getSelectedTrackInfo()
  if im.IsMouseClicked(0) then
    if res and res.object and not im.GetIO().WantCaptureMouse then
      if mergeMode == 'merge' then
  if im.IsMouseClicked(0) then
    if res and res.object and not im.GetIO().WantCaptureMouse then
      local index, sub = meshNameToIndex(res.object:getName())
  if doPaint then
    if res and res.pos and not im.GetIO().WantCaptureMouse then
      res.pos = vec3(res.pos)
      --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)
      --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 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 pipette = im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
      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 pipette = im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
      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)
      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)
      if borderPaint[0] == true then
        change = tb.setMesh(index,name,modifierValues[name].table[modifierValues[name].value[0]+1],im.GetIO().KeyCtrl) or change
      end
local function meshMouseUpdate(res)
  if res and res.pos and not im.GetIO().WantCaptureMouse then
    res.pos = vec3(res.pos)
    -- 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)
    -- 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 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 pipette = im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
    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 pipette = im.GetIO().KeyShift and not im.GetIO().KeyCtrl and im.IsMouseClicked(0,false)
    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
    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
  if hiddenForScreenshotTimer > 0 then
    hiddenForScreenshotTimer = hiddenForScreenshotTimer - im.GetIO().DeltaTime
  if replace == nil then
    if im.GetIO().KeyCtrl then
      replace = true
      replace = true
    elseif  im.GetIO().KeyShift then
      replace = false

  local imguiIO = im.GetIO(imguiIO)
  if not style.displaySize then style.displaySize = {x=imguiIO.DisplaySize.x, y=imguiIO.DisplaySize.y} end
@/lua/ge/extensions/editor/gen/world.lua

	local w = im.GetIO().MouseWheel
	if w ~= 0 then
@/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
    mouseInfo.down =  im.IsMouseClicked(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.hold = im.IsMouseDown(0) and not im.GetIO().WantCaptureMouse
    mouseInfo.up =  im.IsMouseReleased(0) and not im.GetIO().WantCaptureMouse
    if mouseInfo.down then
@/lua/ge/extensions/flowgraph/nodes/debug/displayFlow.lua

  local activeBool = self.mgr.frameCount - self.lastUsedFrame < 5 -- (im.GetIO().Framerate)
  local activeColor = im.ImVec4(0, 1, 0, (activeBool and 1 or 0.5))