diff --git a/src/device_controller/mouse/linux/mouse_controller.cpp b/src/device_controller/mouse/linux/mouse_controller.cpp index 732260e..32c3d7c 100644 --- a/src/device_controller/mouse/linux/mouse_controller.cpp +++ b/src/device_controller/mouse/linux/mouse_controller.cpp @@ -49,8 +49,8 @@ int MouseController::Init(int screen_width, int screen_height) { int MouseController::Destroy() { return 0; } int MouseController::SendCommand(RemoteAction remote_action) { - int mouse_pos_x = remote_action.m.x * screen_width_ / 1280; - int mouse_pos_y = remote_action.m.y * screen_height_ / 720; + int mouse_pos_x = remote_action.m.x; + int mouse_pos_y = remote_action.m.y; if (remote_action.type == ControlType::mouse) { struct input_event event; diff --git a/src/device_controller/mouse/windows/mouse_controller.cpp b/src/device_controller/mouse/windows/mouse_controller.cpp index d814ff0..21776c9 100644 --- a/src/device_controller/mouse/windows/mouse_controller.cpp +++ b/src/device_controller/mouse/windows/mouse_controller.cpp @@ -20,8 +20,8 @@ int MouseController::SendCommand(RemoteAction remote_action) { if (remote_action.type == ControlType::mouse) { ip.type = INPUT_MOUSE; - ip.mi.dx = remote_action.m.x * screen_width_ / 1280; - ip.mi.dy = remote_action.m.y * screen_height_ / 720; + ip.mi.dx = remote_action.m.x; + ip.mi.dy = remote_action.m.y; if (remote_action.m.flag == MouseFlag::left_down) { ip.mi.dwFlags = MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_ABSOLUTE; } else if (remote_action.m.flag == MouseFlag::left_up) { diff --git a/src/screen_capturer/macosx/screen_capturer_avf.cpp b/src/screen_capturer/macosx/screen_capturer_avf.cpp index 9e8d018..8c7514a 100644 --- a/src/screen_capturer/macosx/screen_capturer_avf.cpp +++ b/src/screen_capturer/macosx/screen_capturer_avf.cpp @@ -67,7 +67,7 @@ int ScreenCapturerAvf::Init(const int fps, cb_desktop_data cb) { av_dict_set(&options_, "framerate", "60", 0); av_dict_set(&options_, "pixel_format", "nv12", 0); // show remote cursor - av_dict_set(&options_, "capture_cursor", "1", 0); + av_dict_set(&options_, "capture_cursor", "0", 0); // Make the grabbed area follow the mouse // av_dict_set(&options_, "follow_mouse", "centered", 0); // Video frame size. The default is to capture the full screen