There was an error while loading. Please reload this page.
1 parent 81eedc5 commit bef3370Copy full SHA for bef3370
1 file changed
src/one_dragon/base/controller/pc_controller_base.py
@@ -37,11 +37,11 @@ class PcControllerBase(ControllerBase):
37
MOUSEEVENTF_LEFTUP = 0x0004
38
39
# 按下鼠标后到开始拖动前的等待时间 (用于稳定按压)
40
- SLEEP_BEFORE_DRAG_START:float = 0.3
+ SLEEP_BEFORE_DRAG_START: float = 0.3
41
# 拖动后的等待时间 (用于消除拖动惯性)
42
- SLEEP_BEFORE_DRAG_END:float = 0.2
+ SLEEP_BEFORE_DRAG_END: float = 0.2
43
# (DRAG_MIN_DURATION + SLEEP_BEFORE_DRAG_START + SLEEP_BEFORE_DRAG_END) 为整个拖动过程的最小时间
44
- DRAG_MIN_DURATION:float = 0.1
+ DRAG_MIN_DURATION: float = 0.1
45
46
def __init__(self,
47
screenshot_method: str,
0 commit comments