[osg-users] Multiple key strokes handle in OSG

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Sat May 2 10:08:14 PDT 2020


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



More information about the osg-users mailing list