mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-02 07:37:12 +00:00
fix:linux编译不过
linux目前没有实现mousetap
This commit is contained in:
parent
1fbf6fce94
commit
431466291e
1 changed files with 5 additions and 1 deletions
|
@ -26,8 +26,9 @@ int main(int argc, char *argv[])
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
|
|
||||||
installTranslator();
|
installTranslator();
|
||||||
|
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
||||||
MouseTap::getInstance()->initMouseEventTap();
|
MouseTap::getInstance()->initMouseEventTap();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
qputenv("QTSCRCPY_ADB_PATH", "../../../third_party/adb/win/adb.exe");
|
qputenv("QTSCRCPY_ADB_PATH", "../../../third_party/adb/win/adb.exe");
|
||||||
|
@ -54,7 +55,10 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
int ret = a.exec();
|
int ret = a.exec();
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
||||||
MouseTap::getInstance()->quitMouseEventTap();
|
MouseTap::getInstance()->quitMouseEventTap();
|
||||||
|
#endif
|
||||||
|
|
||||||
Stream::deInit();
|
Stream::deInit();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue