sys: Make sure scrolling counts as an input event
This commit is contained in:
parent
d9fa4b452c
commit
20da22d59e
@ -654,6 +654,13 @@ namespace hex {
|
|||||||
win->processEvent();
|
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) {
|
glfwSetKeyCallback(this->m_window, [](GLFWwindow *window, int key, int scancode, int action, int mods) {
|
||||||
hex::unused(mods);
|
hex::unused(mods);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user