mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-04-28 09:05:15 +00:00
优化防止鸣潮后台抢鼠标
修复有时候启动器启动需要30秒
This commit is contained in:
parent
5f2deea3b9
commit
c7de7d73df
@ -24,9 +24,14 @@ class MouseResetTask(TriggerTask):
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user