From 764fbd519cc4cd9cf497f27564be345868b9f011 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sat, 15 Mar 2014 15:01:09 +0100 Subject: [PATCH] CanvasWidget (PUI): make button index consistent with Canvas windows --- src/GUI/CanvasWidget.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/GUI/CanvasWidget.cxx b/src/GUI/CanvasWidget.cxx index 17964d175..160a3590b 100644 --- a/src/GUI/CanvasWidget.cxx +++ b/src/GUI/CanvasWidget.cxx @@ -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: