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); }