INNER CODE UNIT · C++

screen

zhangdoa/InnocenceEngine · Source/Editor/adjustlabel.cpp:79

    QRect screen = QApplication::primaryScreen()->geometry();

    if (mousePos.x() == 0)
    {
        QPoint newMousePos = QPoint(screen.width(), mousePos.y());
        QCursor::setPos(newMousePos);
        m_lastMousePos = GetMousePosLocal().x();
    }

    if (mousePos.x() == screen.width() - 1)
    {
        QPoint newMousePos = QPoint(0, mousePos.y());
        QCursor::setPos(newMousePos);
        m_lastMousePos = GetMousePosLocal().x();
    }
}

void AdjustLabel::Adjust()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…