1
0
mirror of synced 2024-11-28 09:30:51 +01:00

sys: Make sure scrolling counts as an input event

This commit is contained in:
WerWolv 2023-02-16 08:53:23 +01:00
parent d9fa4b452c
commit 20da22d59e

View File

@ -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<Window *>(glfwGetWindowUserPointer(window));
win->processEvent();
});
glfwSetKeyCallback(this->m_window, [](GLFWwindow *window, int key, int scancode, int action, int mods) {
hex::unused(mods);