diff --git a/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp b/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp index e4a03b5..bfb77fb 100644 --- a/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp +++ b/QtScrcpy/device/controller/inputconvert/inputconvertgame.cpp @@ -131,8 +131,10 @@ void InputConvertGame::sendTouchUpEvent(int id, QPointF pos) void InputConvertGame::sendTouchEvent(int id, QPointF pos, AndroidMotioneventAction action) { if (0 > id || MULTI_TOUCH_MAX_NUM-1 < id) { + Q_ASSERT(0); return; } + qDebug() << "id:" << id << " pos:" << pos << " action" << action; ControlMsg* controlMsg = new ControlMsg(ControlMsg::CMT_INJECT_TOUCH); if (!controlMsg) { return; @@ -417,7 +419,7 @@ void InputConvertGame::stopMouseMoveTimer() void InputConvertGame::mouseMoveStartTouch(const QMouseEvent* from) { - Q_UNUSED(from); + Q_UNUSED(from) if (!m_mouseMovePress) { QPointF mouseMoveStartPos = m_keyMap.getMouseMoveMap().startPos; //moveCursorToStart(from); diff --git a/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp b/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp index a971669..a80e641 100644 --- a/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp +++ b/QtScrcpy/device/controller/inputconvert/inputconvertnormal.cpp @@ -83,8 +83,8 @@ void InputConvertNormal::wheelEvent(const QWheelEvent *from, const QSize& frameS void InputConvertNormal::keyEvent(const QKeyEvent *from, const QSize& frameSize, const QSize& showSize) { - Q_UNUSED(frameSize); - Q_UNUSED(showSize); + Q_UNUSED(frameSize) + Q_UNUSED(showSize) if (!from) { return; } diff --git a/QtScrcpy/device/device.cpp b/QtScrcpy/device/device.cpp index 341afe4..792b6e6 100644 --- a/QtScrcpy/device/device.cpp +++ b/QtScrcpy/device/device.cpp @@ -97,7 +97,7 @@ void Device::initSignals() } if (m_videoForm) { connect(m_videoForm, &VideoForm::destroyed, this, [this](QObject *obj){ - Q_UNUSED(obj); + Q_UNUSED(obj) deleteLater(); }); } diff --git a/QtScrcpy/device/stream/stream.cpp b/QtScrcpy/device/stream/stream.cpp index 3cb148f..9d77f88 100644 --- a/QtScrcpy/device/stream/stream.cpp +++ b/QtScrcpy/device/stream/stream.cpp @@ -23,8 +23,8 @@ Stream::~Stream() } static void avLogCallback(void *avcl, int level, const char *fmt, va_list vl) { - Q_UNUSED(avcl); - Q_UNUSED(vl); + Q_UNUSED(avcl) + Q_UNUSED(vl) QString localFmt = QString::fromUtf8(fmt); localFmt.prepend("[FFmpeg] "); diff --git a/QtScrcpy/device/ui/toolform.cpp b/QtScrcpy/device/ui/toolform.cpp index b8190bd..553fff5 100644 --- a/QtScrcpy/device/ui/toolform.cpp +++ b/QtScrcpy/device/ui/toolform.cpp @@ -52,7 +52,7 @@ void ToolForm::mousePressEvent(QMouseEvent *event) void ToolForm::mouseReleaseEvent(QMouseEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) } void ToolForm::mouseMoveEvent(QMouseEvent *event) diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index 45e132e..78be624 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -68,7 +68,7 @@ void VideoForm::onGrabCursor(bool grab) #if defined(Q_OS_WIN32) || defined(Q_OS_OSX) MouseTap::getInstance()->enableMouseEventTap(ui->videoWidget, grab); #else - Q_UNUSED(grab); + Q_UNUSED(grab) #endif } @@ -364,7 +364,7 @@ void VideoForm::keyReleaseEvent(QKeyEvent *event) void VideoForm::paintEvent(QPaintEvent *paint) { - Q_UNUSED(paint); + Q_UNUSED(paint) QStyleOption opt; opt.init(this); QPainter p(this); @@ -373,7 +373,7 @@ void VideoForm::paintEvent(QPaintEvent *paint) void VideoForm::showEvent(QShowEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) if (!isFullScreen()) { showToolForm(); } @@ -386,12 +386,12 @@ void VideoForm::dragEnterEvent(QDragEnterEvent *event) void VideoForm::dragMoveEvent(QDragMoveEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) } void VideoForm::dragLeaveEvent(QDragLeaveEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) } void VideoForm::dropEvent(QDropEvent *event) diff --git a/QtScrcpy/uibase/magneticwidget.cpp b/QtScrcpy/uibase/magneticwidget.cpp index 0d08b82..7fad87c 100644 --- a/QtScrcpy/uibase/magneticwidget.cpp +++ b/QtScrcpy/uibase/magneticwidget.cpp @@ -88,7 +88,7 @@ bool MagneticWidget::eventFilter(QObject *watched, QEvent *event) void MagneticWidget::moveEvent(QMoveEvent *event) { - Q_UNUSED(event); + Q_UNUSED(event) if (!m_adsorbWidget) { return; }