Skip to content

Commit

Permalink
🎈 perf: 优化 lite 版
Browse files Browse the repository at this point in the history
快速开镜模式下,放开右键自动开关一次物品栏,重置光标位置
  • Loading branch information
kiccer committed Feb 12, 2023
1 parent 3fea5db commit 988e7d5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Soldier76-lite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ function Main (event, arg, family)

-- 当鼠标移到底部,距离底部小于安全距离时,调整到顶部 (小于安全距离会影响下一次计算)
if (y >= 65535 - safeDistance) then
MoveMouseTo(x, 1)
RunningCache.lastY = 1
-- MoveMouseTo(x, 1)
-- RunningCache.lastY = 1
break
end

-- ClearLog()
Expand All @@ -120,9 +121,12 @@ function Main (event, arg, family)
RunningCache.deviationPX = 0
RunningCache.deviationCounterPX = 0

elseif event == "MOUSE_BUTTON_RELEASED" and arg == 3 and family == "mouse" then
-- -- 重置鼠标位置
-- PressAndReleaseKey('tab')
-- PressAndReleaseKey('tab')
if (not IsPressed(1) and not IsPressed(3)) then
PressAndReleaseKey('tab')
PressAndReleaseKey('tab')
end
end
end

Expand Down

0 comments on commit 988e7d5

Please sign in to comment.