[feat] do not control mouse in debug mode

This commit is contained in:
dijunkun
2025-11-11 00:56:23 +08:00
parent 8875c6a6a1
commit 2ee3e93afe

View File

@@ -6,11 +6,6 @@
#define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2 #define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2
#ifdef CROSSDESK_DEBUG
#else
#define MOUSE_CONTROL 1
#endif
namespace crossdesk { namespace crossdesk {
int Render::SendKeyCommand(int key_code, bool is_down) { int Render::SendKeyCommand(int key_code, bool is_down) {
@@ -461,7 +456,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
render->start_mouse_controller_ = false;
render->start_keyboard_capturer_ = false;
#else
render->start_mouse_controller_ = true; render->start_mouse_controller_ = true;
#endif
break; break;
} }
case ConnectionStatus::Closed: { case ConnectionStatus::Closed: {