Hi! I think I've found the reason of keyboard layout problem in Linux.

Executing the debug process, I "found" where the key code had been
lost. The problem was in GraphicsWindowX11::adaptKey function, to be
more precise in the following:

"
if (remappedKey & 0xff00)
{
    // special keyboard character
    keySymbol = remappedKey;
}
else
{
    // normal ascii key
    keySymbol = keybuf[0];
}
"

if we replace/remove that conditional branch, i.e. use only that:
"
{
     // special keyboard character
     keySymbol = remappedKey;
}
"
everything works fine :)

I couldn't understand the aim of developers, what is that "else" for, anyway?

"
else
 {
     // normal ascii key
     keySymbol = keybuf[0];
 }
"
if remappedKey holds the right value anyway (not only for special
keyboard character)


Could we send this into OpenSceneGraph Submissions?
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to