[osg-users] KeyboardEventHandler and native keyboard layout bug in Linux

2009-05-13 Thread Максим Гаммер
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;




Gammer Maxim, Russia
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] KeyboardEventHandler and native keyboard layout bug in Linux

2009-05-13 Thread Maxim Gammer
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org