mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
feat: 新增“暂停下干员”选项,默认关闭。调整部署部署干员的参数
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user