JS,

You're right.  I believe osgviewer still works correctly.  I didn't look if
it uses keyup or keydown.

It appears that the osg window in my app does not get the WM_CHAR messages
and so the change mentioned below "broke it" for me.  I'm looking at why
this message isn't being propagated.

A different question, is why is the code written this way?  I mean as I
understand in windows you get a WM_KEYDOWN msg for all keys and then if it
is a character you later get a WM_CHAR (possible multiple depending on key
repeat?) and then when the user releases the key you get a WM_KEYUP.  That's
my understanding anyway.  The current osg implementation seems more
convoluted..?

Thanks
-Brad

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Jean-Sébastien Guay
Sent: Wednesday, September 15, 2010 5:19 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Keypress broken since rev 11749

Hi Brad,

> It appears that with the changes to GraphicsWindowWin32.cpp at rev 11749
> that keypress does not get called when one hits a “non special” key (eg
> one of the letter keys). If I understand correctly, non-special keys are
> no longer totally handled from WM_KEYDOWN and they are supposed to use
> WM_CHAR or something. This does not appear to work.
>
> I’ll keep looking, but perhaps someone else has already noticed the
bug/fix?

 From your description above, it makes me think that in osgviewer, the 
normal keys shouldn't work, for example pressing 's' shouldn't show the 
onscreen stats (since the StatsHandler does its work on 
osgGA::GUIEventAdapter::KEYDOWN events). But it still does, with an OSG 
compiled last night (Windows 7 64-bit, Visual C++ 2008 sp1 32-bit build).

Can you be more specific on what I would need to do to see this problem?

J-S
-- 
______________________________________________________
Jean-Sebastien Guay    [email protected]
                                http://www.cm-labs.com/
                         http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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

Reply via email to