[osg-users] Examples of using CTRL+Arrow keys?
Robert Osfield
robert.osfield at gmail.com
Thu Apr 5 08:04:57 PDT 2018
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 <marlin.r.rowley at lmco.com> 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:image002.jpg at 01D39374.DEC5A2E0]
>
> *Missiles and Fire Control*
>
> 972-603-1931 (office)
>
> 214-926-0622 (mobile)
>
> marlin.r.rowley at lmco.com
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180405/3ecf1f37/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3114 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180405/3ecf1f37/attachment.jpg>
More information about the osg-users
mailing list