mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Refactor GLFW scroll event callback to use a proper event struct
This commit is contained in:
4
glfw/input.c
vendored
4
glfw/input.c
vendored
@@ -353,10 +353,10 @@ void _glfwInputKeyboard(_GLFWwindow* window, GLFWkeyevent* ev)
|
||||
|
||||
// Notifies shared code of a scroll event
|
||||
//
|
||||
void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset, int flags, int mods)
|
||||
void _glfwInputScroll(_GLFWwindow* window, const GLFWScrollEvent *ev)
|
||||
{
|
||||
if (window->callbacks.scroll)
|
||||
window->callbacks.scroll((GLFWwindow*) window, xoffset, yoffset, flags, mods);
|
||||
window->callbacks.scroll((GLFWwindow*) window, ev);
|
||||
}
|
||||
|
||||
// Notifies shared code of a mouse button click event
|
||||
|
||||
Reference in New Issue
Block a user