[osg-users] Multiple key strokes handle in OSG

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Mon May 4 06:54:13 PDT 2020


Hi Alberto,

Thanks for the reply.

i used the function getUnmodifiedKey() instead of getKey() and it worked. 
thanks for the help.

Rgds
santhosh

On Saturday, May 2, 2020 at 10:38:34 PM UTC+5:30, OpenSceneGraph Users 
wrote:
>
> Hi, santhosh.  I think what you have there is that you are getting some 
> of the multiple events.  Debugging issues like that can be very 
> cumbersome, so I would put a breakpoint inside the innermost block. 
>
> Nevertheless, if you want to have single key events instead of repeated 
> (that is, that the user is not expected to hold the keys, just quickly 
> press them), I would replace KEYDOWN by KEYUP so that event is only 
> triggered once instead of continuously.  This is a common technique that 
> I'm sure you will find also in the examples. 
>
> -- 
> Alberto 
>
> _______________________________________________ 
> osg-users mailing list 
> osg-... at lists.openscenegraph.org <javascript:> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/8dad28c6-f576-4610-a216-78d7a8e710fa%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200504/f09097f8/attachment.html>


More information about the osg-users mailing list