svn commit: r369567 - in head/graphics/osg: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Sep 30 02:04:39 UTC 2014
Author: amdmi3
Date: Tue Sep 30 02:04:37 2014
New Revision: 369567
URL: http://svnweb.freebsd.org/changeset/ports/369567
QAT: https://qat.redports.org/buildarchive/r369567/
Log:
- Fix shift key getting stuck on some cases
PR: 193630
Submitted by: mike.d.ft402 at gmail.com
Added:
head/graphics/osg/files/patch-shift-key-fix (contents, props changed)
Modified:
head/graphics/osg/Makefile
Modified: head/graphics/osg/Makefile
==============================================================================
--- head/graphics/osg/Makefile Tue Sep 30 00:52:52 2014 (r369566)
+++ head/graphics/osg/Makefile Tue Sep 30 02:04:37 2014 (r369567)
@@ -3,7 +3,7 @@
PORTNAME= osg
PORTVERSION= 3.2.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= http://trac.openscenegraph.org/downloads/developer_releases/ \
http://mirror.amdmi3.ru/distfiles/
Added: head/graphics/osg/files/patch-shift-key-fix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/osg/files/patch-shift-key-fix Tue Sep 30 02:04:37 2014 (r369567)
@@ -0,0 +1,23 @@
+# Shift key not released if group switch is something other than Control-Shift:
+# https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1218650.html
+
+--- src/osgGA/EventQueue.cpp.orig
++++ src/osgGA/EventQueue.cpp
+@@ -337,7 +337,7 @@ void EventQueue::mouseButtonRelease(floa
+
+ void EventQueue::keyPress(int key, double time, int unmodifiedKey)
+ {
+- switch(key)
++ switch(unmodifiedKey)
+ {
+ case(GUIEventAdapter::KEY_Shift_L): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_LEFT_SHIFT | _accumulateEventState->getModKeyMask()); break;
+ case(GUIEventAdapter::KEY_Shift_R): _accumulateEventState->setModKeyMask(GUIEventAdapter::MODKEY_RIGHT_SHIFT | _accumulateEventState->getModKeyMask()); break;
+@@ -381,7 +381,7 @@ void EventQueue::keyPress(int key, doubl
+
+ void EventQueue::keyRelease(int key, double time, int unmodifiedKey)
+ {
+- switch(key)
++ switch(unmodifiedKey)
+ {
+ case(GUIEventAdapter::KEY_Shift_L): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_LEFT_SHIFT & _accumulateEventState->getModKeyMask()); break;
+ case(GUIEventAdapter::KEY_Shift_R): _accumulateEventState->setModKeyMask(~GUIEventAdapter::MODKEY_RIGHT_SHIFT & _accumulateEventState->getModKeyMask()); break;
More information about the svn-ports-head
mailing list