dbl = ev.RightDClick();
up = ev.RightUp();
}
+ else if ( ev.Aux1Down() || ev.Aux1Up() || ev.Aux1DClick() )
+ {
+ button = wxT("Aux1");
+ dbl = ev.Aux1DClick();
+ up = ev.Aux1Up();
+ }
+ else if ( ev.Aux2Down() || ev.Aux2Up() || ev.Aux2DClick() )
+ {
+ button = wxT("Aux2");
+ dbl = ev.Aux2DClick();
+ up = ev.Aux2Up();
+ }
+ else if ( ev.GetWheelRotation() )
+ {
+ return wxString::Format("Wheel rotation %+d", ev.GetWheelRotation());
+ }
else
{
return wxT("Unknown mouse event");
}
+ wxASSERT(!(dbl && up));
return wxString::Format(wxT("%s mouse button %s"),
button.c_str(),
<< GetChar( ev.LeftIsDown(), wxT('1') )
<< GetChar( ev.MiddleIsDown(), wxT('2') )
<< GetChar( ev.RightIsDown(), wxT('3') )
+ << GetChar( ev.Aux1IsDown(), wxT('x') )
+ << GetChar( ev.Aux2IsDown(), wxT('X') )
<< GetChar( ev.ControlDown(), wxT('C') )
<< GetChar( ev.AltDown(), wxT('A') )
<< GetChar( ev.ShiftDown(), wxT('S') )