[feat] keyboard control supported on Windows

This commit is contained in:
dijunkun
2024-11-22 17:17:33 +08:00
parent 3f777e4662
commit 8414a57a5b
7 changed files with 29 additions and 3 deletions

View File

@@ -103,7 +103,9 @@ int Render::SendKeyEvent(int key_code, bool is_down) {
}
int Render::ProcessKeyEvent(int key_code, bool is_down) {
LOG_ERROR("key code [{}], is down [{}]", key_code, is_down);
if (keyboard_capturer_) {
keyboard_capturer_->SendKeyboardCommand(key_code, is_down);
}
return 0;
}