fixed cursor pos retrieval

This commit is contained in:
devZoGok
2021-11-05 21:41:42 +02:00
parent 2adbb4b5e4
commit 20f34426e6
+3
View File
@@ -1,5 +1,7 @@
#include "util.h"
#include "root.h"
#include <glfw3.h>
#include <fstream>
using namespace std;
@@ -15,6 +17,7 @@ namespace vb01{
if(!y)
y = new double;
glfwGetCursorPos(Root::getSingleton()->getWindow(), x, y);
return Vector2(*x, *y);
}