1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Add: minitouch basic config

This commit is contained in:
LmeSzinc
2020-08-16 01:52:49 +08:00
parent 82870143b6
commit 3d5f57f460
7 changed files with 17 additions and 4 deletions

View File

@@ -172,6 +172,7 @@ class AzurLaneConfig:
COMMAND = ''
ASCREENCAP_FILEPATH_LOCAL = './bin/ascreencap'
ASCREENCAP_FILEPATH_REMOTE = '/data/local/tmp/ascreencap'
MINITOUCH_FILEPATH_REMOTE = '/data/local/tmp/minitouch'
# Speed: aScreenCap >> uiautomator2 > ADB
DEVICE_SCREENSHOT_METHOD = 'aScreenCap' # ADB, uiautomator2, aScreenCap
# Speed: uiautomator2 >> ADB
@@ -265,7 +266,10 @@ class AzurLaneConfig:
FLEET_BOSS = 2
# Convert map grid distance to swipe distance
# Usually range from 1/0.62 to 1/0.61
# Value may be different in different maps
MAP_SWIPE_MULTIPLY = 1.626
# When using minitouch, MAP_SWIPE_MULTIPLY is a fixed value.
MAP_SWIPE_MULTIPLY_MINITOUCH = 1.572
# Swipe distance in map grid lower than this will be dropped,
# because a closing swipe will be treat as a click in game.
MAP_SWIPE_DROP = 0.15