Show the mouse wheel axis in the text sample

This helps debugging these events generation.

Closes https://github.com/wxWidgets/wxWidgets/pull/798
This commit is contained in:
Maarten Bent 2018-05-01 21:03:38 +02:00 committed by Vadim Zeitlin
parent 59c37cb5eb
commit 58a7339cb9

View File

@ -770,7 +770,9 @@ static wxString GetMouseEventDesc(const wxMouseEvent& ev)
}
else if ( ev.GetWheelRotation() )
{
return wxString::Format("Wheel rotation %+d", ev.GetWheelRotation());
return wxString::Format("%s wheel rotation %+d",
ev.GetWheelAxis() == wxMOUSE_WHEEL_VERTICAL ? "Vertical" : "Horizontal",
ev.GetWheelRotation());
}
else
{