mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-31 06:38:38 +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);
|
||||
|
||||
installTranslator();
|
||||
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
||||
MouseTap::getInstance()->initMouseEventTap();
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
qputenv("QTSCRCPY_ADB_PATH", "../../../third_party/adb/win/adb.exe");
|
||||
|
@ -54,7 +55,10 @@ int main(int argc, char *argv[])
|
|||
|
||||
int ret = a.exec();
|
||||
|
||||
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
||||
MouseTap::getInstance()->quitMouseEventTap();
|
||||
#endif
|
||||
|
||||
Stream::deInit();
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue