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-...@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+unsubscr...@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.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to