Hi Robert, If the keyboard layout is English (USA) or Russian then KeyboardEventHandler works fine! Thank you very much.
2009/5/25 Maxim Gammer <maxgam...@gmail.com>: > Hi Robert, > > I replace GraphicsWindowX11.cpp and run make .... > > ..... > [ 25%] Built target osgText > Scanning dependencies of target osgViewer > [ 25%] Building CXX object > src/osgViewer/CMakeFiles/osgViewer.dir/CompositeViewer.o > [ 25%] Building CXX object > src/osgViewer/CMakeFiles/osgViewer.dir/HelpHandler.o > [ 25%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/Renderer.o > [ 25%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/Scene.o > [ 25%] Building CXX object > src/osgViewer/CMakeFiles/osgViewer.dir/ScreenCaptureHandler.o > [ 25%] Building CXX object > src/osgViewer/CMakeFiles/osgViewer.dir/StatsHandler.o > [ 26%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/Version.o > [ 26%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/View.o > [ 26%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/Viewer.o > [ 26%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/ViewerBase.o > [ 26%] Building CXX object > src/osgViewer/CMakeFiles/osgViewer.dir/ViewerEventHandlers.o > [ 26%] Building CXX object > src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowX11.o > /home/maximum2000/DEVELOP/OpenSceneGraph-2.8.1/src/osgViewer/GraphicsWindowX11.cpp: > In member function ‘Cursor > osgViewer::GraphicsWindowX11::getOrCreateCursor(osgViewer::GraphicsWindow::MouseCursor)’: > /home/maximum2000/DEVELOP/OpenSceneGraph-2.8.1/src/osgViewer/GraphicsWindowX11.cpp:555: > error: no declaration ‘HandCursor’ > make[2]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowX11.o] > error 1 > make[1]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/all] error 2 > make: *** [all] Error 2 > maximum2...@maximum2000-desktop:~/DEVELOP/OpenSceneGraph-2.8.1/tempo$ > > > 2009/5/25 Robert Osfield <robert.osfi...@gmail.com>: >> Hi Maxim, >> >> I've tried out your suggestion of just using the remappedKey value as >> the returned keySymbol but found that it lost the case of characters >> that I was typing, so this alone won't be sufficient for a cross >> locale solution. >> >> Further investigation revealed that the GraphicsWindowX11.cpp class >> X11KeyboardMap which does the remapping to OSG specific control keys >> was receiving a keyboard symbol with the correct case, but then >> remapping the XK_a etc. to 'A' rather than 'a', so it was the >> cultprit. Changing the mapping of the lower case XK_a to 'a' etc. >> solved the problem and has allow me to use the remappedKey directly in >> all cases, like you've done on your system. >> >> I've attached my modified GraphicsWindowX11.cpp, could you try it out >> on your system to see if it works OK, if it does then I'll merged this >> into svn/trunk. >> >> Thanks, >> Robert. >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > > > > -- > Maxim Gammer > -- Maxim Gammer _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org