So where exactly would that go in this order of code? As an extra case for the ea.getEventType()?
---------------------------------------- Marlin Rowley Software Engineer, Staff [cid:[email protected]] Missiles and Fire Control 972-603-1931 (office) 214-926-0622 (mobile) [email protected]<mailto:[email protected]> From: osg-users [mailto:[email protected]] On Behalf Of Robert Osfield Sent: Thursday, April 5, 2018 10:05 AM To: OpenSceneGraph Users <[email protected]> Subject: EXTERNAL: Re: [osg-users] Examples of using CTRL+Arrow keys? Hi Marlin, The osgGA::GUIEventAdapter has a getModKeyMask() that tells you about which of the key modifiers are pressed, and getKey() or getUnmodifiedKey() tells you the key. Robert On 5 April 2018 at 15:59, Rowley, Marlin R <[email protected]<mailto:[email protected]>> wrote: Hi, I’m trying to write code that will read the CTRL+Arrow key to do an action. I’ve looked at the keyboard example but it doesn’t fit what I have currently: switch (ea.getEventType()) { case osgGA::GUIEventAdapter::KEYDOWN: { switch (ea.getKey()) { Any help would be appreciated, Thanks, -M ---------------------------------------- Marlin Rowley Software Engineer, Staff [cid:[email protected]] Missiles and Fire Control 972-603-1931 (office) 214-926-0622 (mobile) [email protected]<mailto:[email protected]> _______________________________________________ osg-users mailing list [email protected]<mailto:[email protected]> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

