Flip X11 horizontal scroll axis.

This makes it more consistent with the vertical scroll axis and other platforms.
This commit is contained in:
Dmitri Shuralyov 2014-02-12 21:32:03 -05:00
parent 69e10b88b0
commit 8cf0469aa4

View File

@ -607,9 +607,9 @@ static void processEvent(XEvent *event)
else if (event->xbutton.button == Button5) else if (event->xbutton.button == Button5)
_glfwInputScroll(window, 0.0, -1.0); _glfwInputScroll(window, 0.0, -1.0);
else if (event->xbutton.button == Button6) else if (event->xbutton.button == Button6)
_glfwInputScroll(window, -1.0, 0.0);
else if (event->xbutton.button == Button7)
_glfwInputScroll(window, 1.0, 0.0); _glfwInputScroll(window, 1.0, 0.0);
else if (event->xbutton.button == Button7)
_glfwInputScroll(window, -1.0, 0.0);
else else
{ {