mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-21 15:30:08 +08:00
17 lines
275 B
C++
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)};
|
|
}
|