From 2d6f38505d72d2873325a47d1133e7f724b2130e Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 2 Dec 2007 10:36:58 +0000 Subject: [PATCH] make the state of the Meta and Super modifier keys available. These keys are not available out-of-the-box on all systems and keyboards, and should therefore not be used in files committed to CVS. This makes them well suited for local key bindings, as they aren't likely to get overwritten with later releases. SDL supports Meta and Super, OSG supports only Meta, and GLUT supports neither. (Somehow this part escaped the previous commit. :-) --- src/Main/FGManipulator.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Main/FGManipulator.cxx b/src/Main/FGManipulator.cxx index 499c843e3..9249892f6 100644 --- a/src/Main/FGManipulator.cxx +++ b/src/Main/FGManipulator.cxx @@ -99,6 +99,9 @@ static int osgToFGModifiers(int modifiers) if (modifiers & (osgGA::GUIEventAdapter::MODKEY_LEFT_ALT | osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT)) result |= KEYMOD_ALT; + if (modifiers & (osgGA::GUIEventAdapter::MODKEY_LEFT_META | + osgGA::GUIEventAdapter::MODKEY_RIGHT_META)) + result |= KEYMOD_META; return result; } -- 2.39.5