From 20f34426e655b3fe47cc3fdab2232a9c58178ad3 Mon Sep 17 00:00:00 2001 From: devZoGok Date: Fri, 5 Nov 2021 21:41:42 +0200 Subject: [PATCH] fixed cursor pos retrieval --- util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.cpp b/util.cpp index cc416db..10fa66d 100755 --- a/util.cpp +++ b/util.cpp @@ -1,5 +1,7 @@ #include "util.h" +#include "root.h" +#include #include using namespace std; @@ -15,6 +17,7 @@ namespace vb01{ if(!y) y = new double; + glfwGetCursorPos(Root::getSingleton()->getWindow(), x, y); return Vector2(*x, *y); }