Hi, I have been playing around with osgviewer on windows platform. I created a small HUD where the user can input keys and then I figured out that unicode keys where not handled properly by osg.
So I checked the code of the class GraphicsWindowWin32 and came up with a patch (attached) to fix this issue. The patch will handle unicode keys but also key combination using "dead-keys". In order to do so I separated the key handling in to two parts: - the event WM_KEYDOWN will now only be responsible for special keys (ctrl, alt, ...) - the rest will be handled in the event WM_CHAR which is taking care of the unicode for us. Cheers, Vivien ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30741#30741 Attachments: http://forum.openscenegraph.org//files/graphicswindowwin32_986.txt _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
