Fixed hole in mouse button sequence on X11.

This commit is contained in:
Camilla Berglund
2015-02-22 17:31:32 +01:00
parent cf7dc1d737
commit 4d146cb39d
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1011,7 +1011,7 @@ static void processEvent(XEvent *event)
// Additional buttons after 7 are treated as regular buttons
// We subtract 4 to fill the gap left by scroll input above
_glfwInputMouseClick(window,
event->xbutton.button - 4,
event->xbutton.button - Button1 - 4,
GLFW_PRESS,
mods);
}