flutter_desktop_connection_2: debug lan

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-08-02 13:10:09 +08:00
parent 90515ea588
commit 74a2929bc9
12 changed files with 740 additions and 609 deletions

View File

@@ -1028,6 +1028,7 @@ class FFI {
RustdeskImpl get bind => ffiModel.platformFFI.ffiBind;
handleMouse(Map<String, dynamic> evt) {
debugPrint("mouse ${evt.toString()}");
var type = '';
var isMove = false;
switch (evt['type']) {
@@ -1045,7 +1046,7 @@ class FFI {
}
evt['type'] = type;
var x = evt['x'];
var y = evt['y'];
var y = max(0.0, (evt['y'] as double) - 50.0);
if (isMove) {
canvasModel.moveDesktopMouse(x, y);
}