[feat] enable mouse control for multi-display

This commit is contained in:
dijunkun
2025-05-15 18:37:59 +08:00
parent 0a1014dded
commit 11358e0b60
6 changed files with 113 additions and 49 deletions

View File

@@ -16,6 +16,19 @@ class ScreenCapturer {
class DisplayInfo {
public:
DisplayInfo(std::string name, int left, int top, int right, int bottom)
: name(name), left(left), top(top), right(right), bottom(bottom) {}
DisplayInfo(void* handle, std::string name, bool is_primary, int left,
int top, int right, int bottom)
: handle(handle),
name(name),
is_primary(is_primary),
left(left),
top(top),
right(right),
bottom(bottom) {}
~DisplayInfo() {}
void* handle = nullptr;
std::string name = "";
bool is_primary = false;