mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Unlock frame rate when scrolling or focusing
This commit is contained in:
@@ -838,6 +838,16 @@ namespace hex {
|
||||
win->m_unlockFrameRate = true;
|
||||
});
|
||||
|
||||
glfwSetScrollCallback(m_window, [](GLFWwindow *window, double, double) {
|
||||
auto win = static_cast<Window *>(glfwGetWindowUserPointer(window));
|
||||
win->m_unlockFrameRate = true;
|
||||
});
|
||||
|
||||
glfwSetWindowFocusCallback(m_window, [](GLFWwindow *window, int) {
|
||||
auto win = static_cast<Window *>(glfwGetWindowUserPointer(window));
|
||||
win->m_unlockFrameRate = true;
|
||||
});
|
||||
|
||||
glfwSetWindowFocusCallback(m_window, [](GLFWwindow *, int focused) {
|
||||
EventWindowFocused::post(focused == GLFW_TRUE);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user