nekoray_Mahdi-zarei/src/sys/windows/cursor.cpp
2025-01-11 03:39:09 +03:30

17 lines
275 B
C++

#include "include/sys/windows/cursor.h"
#include <QScreen>
#include <string>
#include "windows.h"
QPoint GetCursorPosition()
{
POINT P;
if (!GetCursorPos(&P))
{
qDebug((std::to_string(GetLastError())).c_str());
}
return {int(P.x), int(P.y)};
}