Hi Robert,

I would agree with revert the code for now if it causes trouble.
I think handling it on the GUIEventAdapter would indeed solve the problem.

Here is a possible solution:

- add a new EventType in GUIEventAdapter. It could be called "KEYENTERED". This 
event would return the translated key. This event could be called multiple 
times for repetition when the user keeps the key pressed.
- add a "translatedkey" filed with accessors in GUIEventAdapter
- add a method void translatedkeyEntered(int translatedkey, double time); in 
the EventQueue


This way we could have two sets of events:
- KEYDOWN and KEYUP would be left unchanged and would be giving the 
untranslated key. This is usefull for application like osgViewer. This way it 
would not break backward compatibility.

- KEYENTERED would be giving the translated key, usefull for guis.

Vivien

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to