From 20da22d59e46ce82b2e1a7a1f87bef4c843eee29 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 16 Feb 2023 08:53:23 +0100 Subject: [PATCH] sys: Make sure scrolling counts as an input event --- main/source/window/window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index ccadea55b..dec865b03 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -654,6 +654,13 @@ namespace hex { win->processEvent(); }); + glfwSetScrollCallback(this->m_window, [](GLFWwindow *window, double xOffset, double yOffset) { + hex::unused(xOffset, yOffset); + + auto win = static_cast(glfwGetWindowUserPointer(window)); + win->processEvent(); + }); + glfwSetKeyCallback(this->m_window, [](GLFWwindow *window, int key, int scancode, int action, int mods) { hex::unused(mods);