mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-01 21:38:40 +00:00
fix: mac build error
This commit is contained in:
parent
2098388eda
commit
bf849d8a1a
2 changed files with 17 additions and 3 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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue