Hi Melchior, Argg... one step forward twenty back.. sadly I didn't test with osgkeyboad when I made the fix. Clearly it's not badly broken so we'll have to find another route. I do some investigation at my end.
Robert. On Mon, Jun 1, 2009 at 9:18 AM, Melchior FRANZ <[email protected]> wrote: > * Robert Osfield -- Monday 25 May 2009: >> Good to hear that it's now working. > > Sorry, but it's not! This totally breaks non-russian keyboards. Did you > try osgkeyboard lately? Type an upper-case letter. You'll get lower-case > instead. > > The code that you threw out was meant to turn lowercase into uppercase when > shift was pressed, and ctrl-codes to the control range (ctr-a -> 0x1). Now > we always get 'a', no matter which modifiers are pressed. (The modifiers > themselves are still reported correctly, of course.) > > I don't say that the new behavior is wrong, but it'll break about *any* > keyboard using program out there. If this is to stay, then all of them have > to be adapted and do the conversion themselves. > > Here's a comparison of what we got before and what we get now. The numbers > are getModKeyMask()-getKey(). > > Typing before r10269 with r10269 > --------------------------------------------------------------------------- > a 0000-0061 'a' shift: ctrl: 0000-0061 'a' shift: ctrl: > Shift-a 0001-0041 'A' shift: L ctrl: 0001-0061 'a' shift: L ctrl: > Ctrl-a 0004-0001 shift: ctrl: L 0004-0061 'a' shift: ctrl: L > > > I've got the attached patch applied to osgkeyboard.cpp ever since I worked on > GraphicsWindowX11.cpp. This outputs some more useful information than it does > normally. > > m. > > _______________________________________________ > 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

