diff options
author | Greg V <greg@unrelenting.technology> | 2020-09-28 03:53:15 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-11-18 15:10:56 +0100 |
commit | 1544acff059e8e064f9eda8bc4908334b95f6a96 (patch) | |
tree | b4d36e16d9a1c4108c347c0889ea11ba9d63e925 | |
parent | glfw: scale cursor position by the ratio of framebuffer to screen size (diff) | |
download | re3-1544acff059e8e064f9eda8bc4908334b95f6a96.tar re3-1544acff059e8e064f9eda8bc4908334b95f6a96.tar.gz re3-1544acff059e8e064f9eda8bc4908334b95f6a96.tar.bz2 re3-1544acff059e8e064f9eda8bc4908334b95f6a96.tar.lz re3-1544acff059e8e064f9eda8bc4908334b95f6a96.tar.xz re3-1544acff059e8e064f9eda8bc4908334b95f6a96.tar.zst re3-1544acff059e8e064f9eda8bc4908334b95f6a96.zip |
-rw-r--r-- | src/skel/glfw/glfw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 8d1b7d90..1217fc70 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1670,6 +1670,8 @@ main(int argc, char *argv[]) #endif { glfwPollEvents(); + glfwSetInputMode(PSGLOBAL(window), GLFW_CURSOR, + (FrontEndMenuManager.m_bMenuActive && !PSGLOBAL(fullScreen)) ? GLFW_CURSOR_HIDDEN : GLFW_CURSOR_DISABLED); if( ForegroundApp ) { switch ( gGameState ) |