<div dir="ltr"><div>Hi Alberto,</div><div><br></div><div>Thanks for the reply.</div><div><br></div><div>i used the function getUnmodifiedKey() instead of getKey() and it worked. thanks for the help.</div><div><br></div><div>Rgds</div><div>santhosh<br></div><br>On Saturday, May 2, 2020 at 10:38:34 PM UTC+5:30, OpenSceneGraph Users wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi, santhosh.  I think what you have there is that you are getting some
<br>of the multiple events.  Debugging issues like that can be very
<br>cumbersome, so I would put a breakpoint inside the innermost block.
<br>
<br>Nevertheless, if you want to have single key events instead of repeated
<br>(that is, that the user is not expected to hold the keys, just quickly
<br>press them), I would replace KEYDOWN by KEYUP so that event is only
<br>triggered once instead of continuously.  This is a common technique that
<br>I'm sure you will find also in the examples.
<br>
<br>-- 
<br>Alberto
<br>
<br>______________________________<wbr>_________________
<br>osg-users mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="fnrk6Jf0AwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@lists.<wbr>openscenegraph.org</a>
<br><a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a>
<br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/8dad28c6-f576-4610-a216-78d7a8e710fa%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/8dad28c6-f576-4610-a216-78d7a8e710fa%40googlegroups.com</a>.<br />