[fix] restore Linux X11 remote keyboard capture

This commit is contained in:
dijunkun
2026-09-15 16:23:42 +08:00
parent e40c7fca98
commit d648585891
7 changed files with 287 additions and 156 deletions
@@ -42,6 +42,9 @@ class KeyboardCapturer : public DeviceController {
virtual int Hook(OnKeyAction on_key_action, void* user_ptr) = 0;
virtual int Unhook() = 0;
// Backends with an asynchronous capture loop override this so the UI can
// fall back to window events if that loop stops unexpectedly.
virtual bool IsHookActive() const { return true; }
virtual int SendKeyboardCommand(int key_code, bool is_down,
uint32_t scan_code = 0,
bool extended = false) = 0;