diff options
author | Greg V <greg@unrelenting.technology> | 2020-09-28 03:53:15 +0200 |
---|---|---|
committer | Greg V <greg@unrelenting.technology> | 2020-09-28 03:53:15 +0200 |
commit | 0205960a2fe13174b5dc17abf080b6821a3c883a (patch) | |
tree | dd11ed43979354559086030437a76dcef089eb2d /src | |
parent | glfw: scale cursor position by the ratio of framebuffer to screen size (diff) | |
download | re3-0205960a2fe13174b5dc17abf080b6821a3c883a.tar re3-0205960a2fe13174b5dc17abf080b6821a3c883a.tar.gz re3-0205960a2fe13174b5dc17abf080b6821a3c883a.tar.bz2 re3-0205960a2fe13174b5dc17abf080b6821a3c883a.tar.lz re3-0205960a2fe13174b5dc17abf080b6821a3c883a.tar.xz re3-0205960a2fe13174b5dc17abf080b6821a3c883a.tar.zst re3-0205960a2fe13174b5dc17abf080b6821a3c883a.zip |
Diffstat (limited to '')
-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 d7054b9c..e954e04b 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1628,6 +1628,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 ) |