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
This commit is contained in:
laurentgom 2009-10-27 16:05:00 +00:00
parent 688a8f15da
commit 6df95868d0

View File

@ -792,6 +792,8 @@ bool WindowImplX11::ProcessEvent(XEvent windowEvent)
Event event; Event event;
event.Type = Event::MouseWheelMoved; event.Type = Event::MouseWheelMoved;
event.MouseWheel.Delta = windowEvent.xbutton.button == Button4 ? 1 : -1; event.MouseWheel.Delta = windowEvent.xbutton.button == Button4 ? 1 : -1;
event.MouseWheel.X = windowEvent.xbutton.x;
event.MouseWheel.Y = windowEvent.xbutton.y;
SendEvent(event); SendEvent(event);
} }
break; break;