Hello Robert, I've cheŃked the GraphicsWindowX11.cpp and it worked fine in OSG 2.8.1 and SVN. Thank you for your help. I hope this change will be included in the next stable version.
Robert, I wonder what should be done to deserve being in the AUTHORS.txt? :) Max Gammer. 2009/5/25 Robert Osfield <robert.osfi...@gmail.com>: > Hi Maxim, > > Good to hear that it's now working. I've now checked in the fix to > svn/trunk and the OSG-2.8 branch. Alas it missed 2.8.1 though... > > Robert. > > > On Mon, May 25, 2009 at 5:14 PM, Maxim Gammer <maxgam...@gmail.com> wrote: >> Hi Robert, >> If the keyboard layout is English (USA) or Russian then >> KeyboardEventHandler works fine! >> Thank you very much. >> >> p.s. OSG 2.8.1 >> (and Nvidia PhysX 2.8.1 ) ) >> >> 2009/5/25 Robert Osfield <robert.osfi...@gmail.com>: >>> Hi Maxim, >>> >>> Argg... I modified the GraphicsWindowX11.cpp in svn/trunk and you are >>> obviously using a prior version of the OSG. Attached is the svn/trunk >>> version of GraphicsWindow that has the Hand definition. Hopefully >>> this will be enough, if not you might need to grab the svn/trunk >>> version of the OSG. >>> >>> Which version of the OSG are you using? >>> >>> Robert. >>> >>> >>> >>> On Mon, May 25, 2009 at 4:37 PM, Maxim Gammer <maxgam...@gmail.com> wrote: >>>> 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 >>>> _______________________________________________ >>>> osg-users mailing list >>>> osg-users@lists.openscenegraph.org >>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>>> >>> >>> _______________________________________________ >>> osg-users mailing list >>> osg-users@lists.openscenegraph.org >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >>> >> >> >> >> -- >> Maxim Gammer >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Maxim Gammer _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org