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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org