View | Details | Raw Unified | Return to bug 193630
Collapse All | Expand All

(-)graphics/osg/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	osg
4
PORTNAME=	osg
5
PORTVERSION=	3.2.0
5
PORTVERSION=	3.2.0
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	http://trac.openscenegraph.org/downloads/developer_releases/ \
8
MASTER_SITES=	http://trac.openscenegraph.org/downloads/developer_releases/ \
9
		http://mirror.amdmi3.ru/distfiles/
9
		http://mirror.amdmi3.ru/distfiles/
(-)graphics/osg/files/patch-src-osgGA-EventQueue.cpp (+23 lines)
Line 0 Link Here
1
# Shift key not released if group switch is something other than Control-Shift:
2
# https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1218650.html
3
4
--- src/osgGA/EventQueue.cpp.orig
5
+++ src/osgGA/EventQueue.cpp
6
@@ -337,7 +337,7 @@ void EventQueue::mouseButtonRelease(floa
7
 
8
 void EventQueue::keyPress(int key, double time, int unmodifiedKey)
9
 {
10
-    switch(key)
11
+    switch(unmodifiedKey)
12
     {
13
         case(GUIEventAdapter::KEY_Shift_L):      _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_LEFT_SHIFT | _accumulateEventState->getModKeyMask()); break;
14
         case(GUIEventAdapter::KEY_Shift_R):      _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_RIGHT_SHIFT | _accumulateEventState->getModKeyMask()); break;
15
@@ -381,7 +381,7 @@ void EventQueue::keyPress(int key, doubl
16
 
17
 void EventQueue::keyRelease(int key, double time, int unmodifiedKey)
18
 {
19
-    switch(key)
20
+    switch(unmodifiedKey)
21
     {
22
         case(GUIEventAdapter::KEY_Shift_L):      _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_LEFT_SHIFT & _accumulateEventState->getModKeyMask()); break;
23
         case(GUIEventAdapter::KEY_Shift_R):      _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_RIGHT_SHIFT & _accumulateEventState->getModKeyMask()); break;

Return to bug 193630