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]> 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
>
> [image: cid:[email protected]]
>
> *Missiles and Fire Control*
>
> 972-603-1931 (office)
>
> 214-926-0622 (mobile)
>
> [email protected]
>
>
>
> _______________________________________________
> osg-users mailing list
> [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

Reply via email to