From 685ff91f73d4aa437d801e0c93dee2b904eb8880 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 4 Apr 2021 14:04:23 +0000 Subject: Window & Events: cursor mode improve --- src/window/Events.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/window/Events.cpp') 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; -- cgit v1.2.3-18-g5258