<div dir="ltr"><div><div>Hi Marlin,<br><br></div>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. <br><br></div>Robert<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 April 2018 at 15:59, Rowley, Marlin R <span dir="ltr"><<a href="mailto:marlin.r.rowley@lmco.com" target="_blank">marlin.r.rowley@lmco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-2686462563270251287WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:14.5pt;font-family:Consolas;color:#569cd6">switch</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">(</span><span style="font-size:14.5pt;font-family:Consolas;color:#7f7f7f">ea</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">.</span><span style="font-size:14.5pt;font-family:Consolas;color:#c8c8c8">getEventType</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">())</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro">
</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">{</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro">
</span><span style="font-size:14.5pt;font-family:Consolas;color:#569cd6">case</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:14.5pt;font-family:Consolas;color:#c8c8c8">osgGA</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">::</span><span style="font-size:14.5pt;font-family:Consolas;color:#4ec9b0">GUIEventAdapter</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">::</span><span style="font-size:14.5pt;font-family:Consolas;color:#b8d7a3">K<wbr>EYDOWN</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">:</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro">
</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">{</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro">
</span><span style="font-size:14.5pt;font-family:Consolas;color:#569cd6">switch</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"> </span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">(</span><span style="font-size:14.5pt;font-family:Consolas;color:#7f7f7f">ea</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">.</span><span style="font-size:14.5pt;font-family:Consolas;color:#c8c8c8">getKey</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">())</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:#1e1e1e"><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro">
</span><span style="font-size:14.5pt;font-family:Consolas;color:#b4b4b4">{</span><span style="font-size:14.5pt;font-family:Consolas;color:gainsboro"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any help would be appreciated,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-M<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">------------------------------<wbr>----------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">Marlin Rowley<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">Software Engineer, Staff<u></u><u></u></span></p>
<p class="MsoNormal"><img style="width:1.625in;height:.4166in" id="m_-2686462563270251287Picture_x0020_1" src="cid:image001.jpg@01D3CCC4.BF48C530" alt="cid:image002.jpg@01D39374.DEC5A2E0" height="40" width="156"><span style="font-size:10.0pt;font-family:"Times New Roman",serif;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><i><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1f497d">Missiles and Fire Control</span></i><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">972-603-1931 (office)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">214-926-0622 (mobile)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="mailto:marlin.r.rowley@lmco.com" target="_blank"><span style="color:#0563c1">marlin.r.rowley@lmco.com</span></a></span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br></blockquote></div><br></div>