From 6df95868d04e168dc2613749ea975f09cd95cda8 Mon Sep 17 00:00:00 2001 From: laurentgom Date: Tue, 27 Oct 2009 16:05:00 +0000 Subject: [PATCH] Added mouse position to mouse wheel event on Linux git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1250 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Linux/WindowImplX11.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SFML/Window/Linux/WindowImplX11.cpp b/src/SFML/Window/Linux/WindowImplX11.cpp index 5670df75..8a8a70a2 100644 --- a/src/SFML/Window/Linux/WindowImplX11.cpp +++ b/src/SFML/Window/Linux/WindowImplX11.cpp @@ -792,6 +792,8 @@ bool WindowImplX11::ProcessEvent(XEvent windowEvent) Event event; event.Type = Event::MouseWheelMoved; event.MouseWheel.Delta = windowEvent.xbutton.button == Button4 ? 1 : -1; + event.MouseWheel.X = windowEvent.xbutton.x; + event.MouseWheel.Y = windowEvent.xbutton.y; SendEvent(event); } break;