1
0
Fork 0

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. :-)
This commit is contained in:
mfranz 2007-12-02 10:36:58 +00:00
parent 7167d20f4f
commit 2d6f38505d

View file

@ -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;
}