diff --git a/main.cpp b/main.cpp index dddbc52..cdd5067 100644 --- a/main.cpp +++ b/main.cpp @@ -8,6 +8,7 @@ #include #include #include +#include NodeRenderer renderer; //BlockManager blockManager; @@ -71,6 +72,9 @@ void display() glFlush(); glutSwapBuffers(); + sf::Vector2i lastMousePos = sf::Vector2i(0, 0); + sf::Vector2i mouseDelta = sf::Mouse::getPosition() - lastMousePos; + lastMousePos = sf::Mouse::getPosition(); glutPostRedisplay(); }