Hi Gammer? Maximum? Could you sign with your first name please so we know how to address you, thanks.
I haven't heard of problems with keyboard mappings under Linux before so don't have any prior knowledge to share, there must be something specific about your setup which isn't supported that others haven't used before. What you'll have to look into is what is happening inside src/osgViewer/GraphicsWindowX11.cpp to see what keyboard events are being generated and follow these to see how they are mapped before passed into the osgGA::EventQueue that is the route into OSG's standard event traversal. Since you're the one that can reproduce the problem, you are also the one best placed to look into what the specific issue is, the best we can do is point your in roughly the right directions to look. Robert. On Thu, May 14, 2009 at 8:31 AM, Maxim Gammer <[email protected]> wrote: > Hello, > > While porting my program to Linux, I encountered the following error. > If the keyboard layout is English (USA) then KeyboardEventHandler > works fine. But if it's something else, Russian for example, > ea.getKey() always returns zero. (Except system keys F1 - F12 and > digits) > > It's the case for Kubuntu 9.04 and SUSE 11.1 (KDE) > In WindowsXP and Vista everything works fine. > > The usage of KeyboardEventHandler: > > bool KeyboardEventHandler::handle( > const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& us) > { > switch(ea.getEventType()) > { > case(osgGA::GUIEventAdapter::KEYDOWN ): > { > int _key = ea.getKey(); > std::cout << "key= " << _key << std::endl; > > .... > > > -- > Maxim Gammer > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

