1. 修复了在rk3566上触摸时模型偏移的问题(禁用窗口拖动逻辑,嵌入式无窗口管理器,拖动无意义)
This commit is contained in:
@@ -7,3 +7,5 @@ build
|
|||||||
|
|
||||||
|
|
||||||
deploy.sh
|
deploy.sh
|
||||||
|
|
||||||
|
CMakeLists.txt.bak
|
||||||
|
|||||||
@@ -195,10 +195,12 @@ void GLCore::mouseMoveEvent(QMouseEvent* event)
|
|||||||
const float y = static_cast<float>(event->position().y());
|
const float y = static_cast<float>(event->position().y());
|
||||||
LAppDelegate::GetInstance()->GetView()->OnTouchesMoved(x, y); // 将当前鼠标位置传递给LAppDelegate
|
LAppDelegate::GetInstance()->GetView()->OnTouchesMoved(x, y); // 将当前鼠标位置传递给LAppDelegate
|
||||||
|
|
||||||
|
#if !defined(EMBEDDED_LINUX)
|
||||||
if (isLeftPressed) { // 鼠标左键按下
|
if (isLeftPressed) { // 鼠标左键按下
|
||||||
const QPoint newPos = event->globalPos() - currentPos;
|
const QPoint newPos = event->globalPos() - currentPos;
|
||||||
this->move(newPos);
|
this->move(newPos);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLCore::mousePressEvent(QMouseEvent* event)
|
void GLCore::mousePressEvent(QMouseEvent* event)
|
||||||
|
|||||||
Reference in New Issue
Block a user