mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 13:20:58 +00:00
Fixed mouse button mismatch in x11 introduced via 4d146cb39d
.
This commit is contained in:
parent
8d910d7950
commit
cdbe16ea96
@ -1049,7 +1049,7 @@ static void processEvent(XEvent *event)
|
|||||||
// Additional buttons after 7 are treated as regular buttons
|
// Additional buttons after 7 are treated as regular buttons
|
||||||
// We subtract 4 to fill the gap left by scroll input above
|
// We subtract 4 to fill the gap left by scroll input above
|
||||||
_glfwInputMouseClick(window,
|
_glfwInputMouseClick(window,
|
||||||
event->xbutton.button - 4,
|
event->xbutton.button - Button1 - 4,
|
||||||
GLFW_RELEASE,
|
GLFW_RELEASE,
|
||||||
mods);
|
mods);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user