Horizontal mouse wheel support
This patch adds support for the horizontal mouse wheel in ImGui. It
affects windows that can be scrolled, as long as the Ctrl key is not
being pressed.

The scrolling speed has been set empirically so that it matches the
scrolling speed on the Firefox browser when the horizontal wheel is
used.

Internally, it adds a MouseHorizWheel to ImGuiIO, which is then used in
NewFrame to scroll the current window.

The SDL/GL2, SDL/GL3, GLFW/GL2 and GLFW/GL3 examples has been modified
to use it.
1 parent 0f955b8 commit 77a310736dfbd79c9d0cf8f52835ed5f4d859441
@Emmanuel Benoît Emmanuel Benoît authored on 27 Nov 2017
Showing 6 changed files
View
examples/opengl2_example/imgui_impl_glfw.cpp
View
examples/opengl3_example/imgui_impl_glfw_gl3.cpp
View
examples/sdl_opengl2_example/imgui_impl_sdl.cpp
View
examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp
View
imgui.cpp
View
imgui.h