mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-30 00:08:28 +00:00
commit
9a0c0a1ce6
11 changed files with 25 additions and 7 deletions
|
@ -36,6 +36,20 @@ public:
|
||||||
QPointF pos = QPointF(0, 0); // normal key
|
QPointF pos = QPointF(0, 0); // normal key
|
||||||
QPointF extendPos = QPointF(0, 0); // for drag
|
QPointF extendPos = QPointF(0, 0); // for drag
|
||||||
double extendOffset = 0.0; // for steerWheel
|
double extendOffset = 0.0; // for steerWheel
|
||||||
|
|
||||||
|
KeyNode(ActionType type = AT_INVALID,
|
||||||
|
int key = Qt::Key_unknown,
|
||||||
|
QPointF pos = QPointF(0, 0),
|
||||||
|
QPointF extendPos = QPointF(0, 0),
|
||||||
|
double extendOffset = 0.0)
|
||||||
|
: type(type)
|
||||||
|
, key(key)
|
||||||
|
, pos(pos)
|
||||||
|
, extendPos(extendPos)
|
||||||
|
, extendOffset(extendOffset)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct KeyMapNode {
|
struct KeyMapNode {
|
||||||
|
@ -112,7 +126,7 @@ private:
|
||||||
static QString s_keyMapPath;
|
static QString s_keyMapPath;
|
||||||
|
|
||||||
QVector<KeyMapNode> m_keyMapNodes;
|
QVector<KeyMapNode> m_keyMapNodes;
|
||||||
KeyNode m_switchKey = { AT_KEY, Qt::Key_QuoteLeft };
|
KeyNode m_switchKey = {AT_KEY, Qt::Key_QuoteLeft};
|
||||||
|
|
||||||
// just for return
|
// just for return
|
||||||
KeyMapNode m_invalidNode;
|
KeyMapNode m_invalidNode;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>420</width>
|
<width>420</width>
|
||||||
<height>471</height>
|
<height>492</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
|
@ -472,7 +472,7 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>60</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -31,8 +31,10 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
//update version
|
//update version
|
||||||
QStringList versionList = QCoreApplication::applicationVersion().split(".");
|
QStringList versionList = QCoreApplication::applicationVersion().split(".");
|
||||||
|
if (versionList.size() >= 3) {
|
||||||
QString version = versionList[0] + "." + versionList[1] + "." + versionList[2];
|
QString version = versionList[0] + "." + versionList[1] + "." + versionList[2];
|
||||||
a.setApplicationVersion(version);
|
a.setApplicationVersion(version);
|
||||||
|
}
|
||||||
|
|
||||||
installTranslator();
|
installTranslator();
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
||||||
|
|
|
@ -19,13 +19,13 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0.4</string>
|
<string>1.2.0</string>
|
||||||
<key>CFBundleSupportedPlatforms</key>
|
<key>CFBundleSupportedPlatforms</key>
|
||||||
<array>
|
<array>
|
||||||
<string>MacOSX</string>
|
<string>MacOSX</string>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.0.4</string>
|
<string>1.2.0</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.10</string>
|
<string>10.10</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
|
BIN
docs/image/显示指针位置.jpg
Normal file
BIN
docs/image/显示指针位置.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 174 KiB |
|
@ -11,6 +11,8 @@
|
||||||
- 按键映射中的坐标位置都是用相对位置表示的,屏幕的宽高都用1表示,例如屏幕的像素为1920x1080,那么坐标(0.5,0.5)则表示的是
|
- 按键映射中的坐标位置都是用相对位置表示的,屏幕的宽高都用1表示,例如屏幕的像素为1920x1080,那么坐标(0.5,0.5)则表示的是
|
||||||
以屏幕左上角为原点,像素坐标(1920,1080)*(0.5,0.5)=(960,540)的位置。
|
以屏幕左上角为原点,像素坐标(1920,1080)*(0.5,0.5)=(960,540)的位置。
|
||||||
- 按键映射中的按键码是用Qt的枚举表示的,详细说明可以[参考Qt文档]( https://doc.qt.io/qt-5/qt.html )(搜索 The key names used by Qt. 可以快速定位)。
|
- 按键映射中的按键码是用Qt的枚举表示的,详细说明可以[参考Qt文档]( https://doc.qt.io/qt-5/qt.html )(搜索 The key names used by Qt. 可以快速定位)。
|
||||||
|
- 开发人员选项中打开如下两个设置,可以方便的观察触摸点的坐标:
|
||||||
|

|
||||||
|
|
||||||
### 映射类型说明
|
### 映射类型说明
|
||||||
|
|
||||||
|
|
BIN
third_party/ffmpeg/lib/libavcodec.a
vendored
BIN
third_party/ffmpeg/lib/libavcodec.a
vendored
Binary file not shown.
BIN
third_party/ffmpeg/lib/libavformat.a
vendored
BIN
third_party/ffmpeg/lib/libavformat.a
vendored
Binary file not shown.
BIN
third_party/ffmpeg/lib/libavutil.a
vendored
BIN
third_party/ffmpeg/lib/libavutil.a
vendored
Binary file not shown.
BIN
third_party/ffmpeg/lib/libswresample.a
vendored
BIN
third_party/ffmpeg/lib/libswresample.a
vendored
Binary file not shown.
BIN
third_party/ffmpeg/lib/libswscale.a
vendored
BIN
third_party/ffmpeg/lib/libswscale.a
vendored
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue