1
0
Fork 0

CanvasWidget (PUI): make button index consistent with Canvas windows

This commit is contained in:
Thomas Geymayer 2014-03-15 15:01:09 +01:00
parent a830708252
commit 764fbd519c

View file

@ -133,13 +133,9 @@ void CanvasWidget::doHit(int button, int updown, int x, int y)
switch( button )
{
case PU_LEFT_BUTTON:
event->button = osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON;
break;
case PU_MIDDLE_BUTTON:
event->button = osgGA::GUIEventAdapter::MIDDLE_MOUSE_BUTTON;
break;
case PU_RIGHT_BUTTON:
event->button = osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON;
event->button = button;
break;
case PU_SCROLL_UP_BUTTON:
case PU_SCROLL_DOWN_BUTTON: