[osg-users] EXTERNAL: Re: Examples of using CTRL+Arrow keys?
Rowley, Marlin R
marlin.r.rowley at lmco.com
Thu Apr 5 08:33:13 PDT 2018
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:image002.jpg at 01D39374.DEC5A2E0]
Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
marlin.r.rowley at lmco.com<mailto:marlin.r.rowley at lmco.com>
From: osg-users [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Thursday, April 5, 2018 10:05 AM
To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
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 <marlin.r.rowley at lmco.com<mailto: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
[cid:image002.jpg at 01D39374.DEC5A2E0]
Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
marlin.r.rowley at lmco.com<mailto:marlin.r.rowley at lmco.com>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org<mailto: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/994d190c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3114 bytes
Desc: image001.jpg
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180405/994d190c/attachment.jpg>
More information about the osg-users
mailing list