[osg-users] Disable/Enable default keyevent during runtime

Robert Osfield robert.osfield at gmail.com
Mon Nov 7 00:41:13 PST 2016


Hi Sebastian,

Just set the KeyEvent to 0.

Robert.

On 7 November 2016 at 07:53, Sebastian Schmidt <herrdersuppen at gmail.com> wrote:
> Hi,
>
> I want to disable default keyevents during runtime,
> so that all key event will be redirected to the osgWidget::Input
> and enable them again later.
>
> I dont want to delete/recreate all of these handlers (Statshandler, Helphandler,etc.)
> or create new custom classes for them.
>
> Wouldnt it be easier to call the setKeyEvent... functions with a key that is not in use?
> Unfortunately we dont have something like osgGA::GUIEventAdapter::KEY_NONE, right?
>
> So what would be the best approach here?
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69252#69252
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list