From 10cdc440a007dfb7cf48c36f69a681f05c4d0ab8 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Wed, 27 Nov 2024 14:34:54 +0800 Subject: [PATCH] [fix] fix key press/release event --- src/single_window/render_callback_func.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/single_window/render_callback_func.cpp b/src/single_window/render_callback_func.cpp index 2b9ac09..9c0cc95 100644 --- a/src/single_window/render_callback_func.cpp +++ b/src/single_window/render_callback_func.cpp @@ -223,7 +223,7 @@ void Render::OnReceiveDataBufferCb(const char *data, size_t size, } } else if (ControlType::keyboard == remote_action.type) { render->ProcessKeyEvent((int)remote_action.k.key_value, - remote_action.k.flag); + remote_action.k.flag == KeyFlag::key_down); } else if (ControlType::host_infomation == remote_action.type) { render->host_name_ = std::string(remote_action.i.host_name, remote_action.i.host_name_size);