don't send AMOTION_EVENT_ACTION_MOVE without left button press
@ -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) {
@ -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)) {
action = AMOTION_EVENT_ACTION_MOVE;
default: