diff --git a/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp b/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp index bfb77fb..80bca07 100644 --- a/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp +++ b/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp @@ -134,7 +134,7 @@ void InputConvertGame::sendTouchEvent(int id, QPointF pos, AndroidMotioneventAct Q_ASSERT(0); return; } - qDebug() << "id:" << id << " pos:" << pos << " action" << action; + //qDebug() << "id:" << id << " pos:" << pos << " action" << action; ControlMsg* controlMsg = new ControlMsg(ControlMsg::CMT_INJECT_TOUCH); if (!controlMsg) { return; diff --git a/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp b/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp index a80e641..12d1d04 100644 --- a/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp +++ b/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp @@ -27,6 +27,10 @@ void InputConvertNormal::mouseEvent(const QMouseEvent* from, const QSize& frameS action = AMOTION_EVENT_ACTION_UP; break; case QEvent::MouseMove: + // only support left button drag + if (!(from->buttons() & Qt::LeftButton)) { + return; + } action = AMOTION_EVENT_ACTION_MOVE; break; default: