feat: 新增“暂停下干员”选项,默认关闭。调整部署部署干员的参数

This commit is contained in:
MistEO
2022-12-03 21:02:58 +08:00
parent 0688de2c6c
commit ec561e6a61
10 changed files with 64 additions and 14 deletions

View File

@@ -1252,7 +1252,7 @@ bool asst::Controller::press_esc()
bool asst::Controller::support_swipe_with_pause() const noexcept
{
return m_minitouch_enabled && m_minitouch_available && !m_adb.swipe.empty();
return m_minitouch_enabled && m_minitouch_available && m_swipe_with_pause_enabled && !m_adb.press_esc.empty();
}
bool asst::Controller::connect(const std::string& adb_path, const std::string& address, const std::string& config)
@@ -1648,6 +1648,11 @@ void asst::Controller::set_minitouch_enabled(bool enable, bool maa_touch) noexce
m_use_maa_touch = maa_touch;
}
void asst::Controller::set_swipe_with_pause(bool enable) noexcept
{
m_swipe_with_pause_enabled = enable;
}
const std::string& asst::Controller::get_uuid() const
{
return m_uuid;