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:
committed by
Vadim Zeitlin
parent
59c37cb5eb
commit
58a7339cb9
@@ -770,7 +770,9 @@ static wxString GetMouseEventDesc(const wxMouseEvent& ev)
|
|||||||
}
|
}
|
||||||
else if ( ev.GetWheelRotation() )
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user