Skip to content

Commit

Permalink
优化防止鸣潮后台抢鼠标
Browse files Browse the repository at this point in the history
修复有时候启动器启动需要30秒
  • Loading branch information
ok-oldking committed Oct 2, 2024
1 parent 5f2deea commit c7de7d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified ok-ww.exe
Binary file not shown.
5 changes: 5 additions & 0 deletions src/task/MouseResetTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ def __init__(self):
def run(self):
pass

def on_create(self):
super().on_create()
self.trigger()

def trigger(self):
if self.enabled:
if not self.running:
logger.info('start mouse reset')
self.running = True
self.handler.post(self.mouse_reset, 0.01)
else:
Expand Down

0 comments on commit c7de7d7

Please sign in to comment.