Controll scroll event

Hello,

How can the event “Ctrl-Mouse scroll” be managed with glfw?

Many programs, including web browsers, use this event to zoom the view. How can we emulate this in a glfw program?

In your scroll callback use glfwGetKey() to check for GLFW_KEY_LEFT_CONTROL or GLFW_KEY_RIGHT_CONTROL being pressed.

Thanks. It worked perfectly.

For 4.0 I’ll try not to forget to add modifier bits for scroll events. :flushed: