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:
parent
59c37cb5eb
commit
58a7339cb9
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user