[chore] disable CROSSDESK_DEBUG in keyboard and mouse control

This commit is contained in:
dijunkun
2025-11-24 16:47:33 +08:00
parent 51409e16c8
commit 2188adb1f1

View File

@@ -469,12 +469,12 @@ void Render::OnConnectionStatusCb(ConnectionStatus status, const char* user_id,
render->need_to_send_host_info_ = true; render->need_to_send_host_info_ = true;
render->start_screen_capturer_ = true; render->start_screen_capturer_ = true;
render->start_speaker_capturer_ = true; render->start_speaker_capturer_ = true;
#ifdef CROSSDESK_DEBUG // #ifdef CROSSDESK_DEBUG
render->start_mouse_controller_ = false; // render->start_mouse_controller_ = false;
render->start_keyboard_capturer_ = false; // render->start_keyboard_capturer_ = false;
#else // #else
render->start_mouse_controller_ = true; render->start_mouse_controller_ = true;
#endif // #endif
if (std::all_of(render->connection_status_.begin(), if (std::all_of(render->connection_status_.begin(),
render->connection_status_.end(), [](const auto& kv) { render->connection_status_.end(), [](const auto& kv) {
return kv.first.find("web") != std::string::npos; return kv.first.find("web") != std::string::npos;