diff --git a/QtScrcpy/device/controller/inputconvert/keymap/keymap.h b/QtScrcpy/device/controller/inputconvert/keymap/keymap.h index f21f814..ffc1d28 100644 --- a/QtScrcpy/device/controller/inputconvert/keymap/keymap.h +++ b/QtScrcpy/device/controller/inputconvert/keymap/keymap.h @@ -36,6 +36,20 @@ public: QPointF pos = QPointF(0, 0); // normal key QPointF extendPos = QPointF(0, 0); // for drag 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 { @@ -112,7 +126,7 @@ private: static QString s_keyMapPath; QVector m_keyMapNodes; - KeyNode m_switchKey = { AT_KEY, Qt::Key_QuoteLeft }; + KeyNode m_switchKey = {AT_KEY, Qt::Key_QuoteLeft}; // just for return KeyMapNode m_invalidNode; diff --git a/QtScrcpy/res/Info_mac.plist b/QtScrcpy/res/Info_mac.plist index cd3c70b..c32ac18 100644 --- a/QtScrcpy/res/Info_mac.plist +++ b/QtScrcpy/res/Info_mac.plist @@ -19,13 +19,13 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.4 + 1.2.0 CFBundleSupportedPlatforms MacOSX CFBundleVersion - 1.0.4 + 1.2.0 LSMinimumSystemVersion 10.10 NSHumanReadableCopyright