Re: [osg-users] Key events doesn't work with function keys

2014-07-22 Thread Andrés Barrionuevo
Hi Robert,

thanks for the info! In the example the function keys worked right!
... 

Thank you!

Cheers,
Andrés

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60393#60393





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


Re: [osg-users] Key events doesn't work with function keys

2014-07-17 Thread Robert Osfield
HI Andres,

Keyboards often have a toggle for the values they generate when pressing
the function keys, perhaps you keyboard is generating desktop control codes.

Run the osgkeyboard example to see what keys are being generated.

Robert.


On 17 July 2014 10:22, Andrés Barrionuevo abarrionu...@gmx.com wrote:

 Hi,

 I'm trying to detect the press of some keys in a custom event handler.

 Code:

if( osgGA::GUIEventAdapter::RESIZE == ea.getEventType() ) {
  switch( ea.getKey() ) {
 case osgGA::GUIEventAdapter::KEY_L:
 // More things...
 break;
case osgGA::GUIEventAdapter::KEY_F2:





 I'am able to do this with keys from a to z and the modifier keys. But when
 I try to use, say, the F2 key, and then print the
 Code:
 ea.getKey()

  value, I always get 0.

 Do I need to activate some option before to use the functions keys?
 ...

 Thank you!

 Cheers,
 Andrés

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=60307#60307





 ___
 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