[fix] fix control and shift keys convertion from Win to MacOSX

This commit is contained in:
dijunkun
2024-11-25 17:29:49 +08:00
parent abd22ab7f1
commit 31b6b2736c
4 changed files with 44 additions and 85 deletions

View File

@@ -22,8 +22,8 @@ class KeyboardCapturer : public DeviceController {
virtual int SendKeyboardCommand(int key_code, bool is_down);
private:
CFMachPortRef eventTap;
CFRunLoopSourceRef runLoopSource;
CFMachPortRef event_tap_;
CFRunLoopSourceRef run_loop_source_;
public:
bool caps_lock_flag_ = false;