[osg-users] Escape Key

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Wed Jul 19 02:09:49 PDT 2017


Hi,

I've just checked. My osg-3.4.0 based code uses

"
else if (osgGA::GUIEventAdapter::KEY_Escape == ea.getKey())
"

so it obviously works ..
The Eventhandler is the first however (since it is a console), so maybe 
this might be worth a shot.

Cheers
Sebastian
> Hello,
> 
> I am using an event handler for catching keyboard's escape key.
> 
> However, my osgGA::GUIEventAdapter::getKey() returns 0x1B, when it 
> should be returning osgGA::GUIEventAdapter::KEY_Escape (which is 0xFF1B).
> 
> What's wrong here? the Osg's enum, or my code?
> 
> 
> _______________________________________________
> 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