fix: 修正投屏授权状态与窗口生命周期,避免串流状态错乱
This commit is contained in:
1 parent
a0b77a3e7a
commit
4c9d006d11
6 files changed
+134
-90
No files matched your search
@@ -79,6 +79,7 @@ class VideoWindow {
|
||||
// 客户区坐标 -> 画面像素;返回 false 表示点在黑边上或还没有画面。
|
||||
bool ClientToFrame(POINT point, int* x, int* y) const;
|
||||
void DispatchPointerAt(int action, POINT point);
|
||||
void EndDrag(HWND hwnd, int action, POINT point);
|
||||
void DispatchMouseButtonAt(int button, int action, POINT point);
|
||||
void DispatchKey(int action, int vk);
|
||||
// 当前修饰键状态(按协议位定义拼装)。
|
||||
@@ -115,7 +116,7 @@ class VideoWindow {
|
||||
RECT image_rect_ = {};
|
||||
// 左键按下期间才下发移动事件,悬停不注入。
|
||||
bool dragging_ = false;
|
||||
POINT last_point_ = {};
|
||||
POINT last_touch_ = {};
|
||||
ULONGLONG last_move_tick_ = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user