diff options
Diffstat (limited to 'src/window/Events.cpp')
-rw-r--r-- | src/window/Events.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window/Events.cpp b/src/window/Events.cpp index 8799853..f6ffe61 100644 --- a/src/window/Events.cpp +++ b/src/window/Events.cpp @@ -78,6 +78,9 @@ void Events::KeyHandle(int key, int scancode, int action, int mode) void Events::CursorPosHandle(double xpos, double ypos) { + if(master->GetCursorMode() == GLFW_CURSOR_NORMAL) + return; + delta_x = xpos - x; delta_y = ypos - y; |