Hi Benjamin,

I'm seeing the correct behaviour (4161 being reported as the mod key mask
with the left shift & control keys pressed, numlock on) with Robert's latest
changes.

André

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: July-04-07 12:01 PM
To: osg users
Subject: Re: [osg-users] Keyboard problems

Hi Benjamin,

With the Linux side working fine after the mod I made there isn't much
I can directly do, I'll Windows users like yourself to study what is
going wrong on the GraphicsWindowWin32.cpp side.  The
GraphicsWindowWin32.cpp I sent is the one I'm would base my
investigations around as this will confuse things less as it removes
the hardware wired hack. i.e. the line

 
//getEventQueue()->getCurrentEventState()->setModKeyMask(modifierMask);

Is commented out.

I do wonder if the control keys aren't being mapped correctly to
keycodes, for instance left shift key should map to KEY_Shift_L etc.
The osgkeyboard example should should the control keys lighting up
when you press them, and unlight when you release, if this isn't
happening then this needs to be fixed, once this is fixed the
management of the modified state should then work.


Robert.

On 7/4/07, SCETBUN benjamin <[EMAIL PROTECTED]> wrote:
>
>
> 2007/7/4, Robert Osfield <[EMAIL PROTECTED]>:
> > Hi Ben,
> >
> > The reported output, which version of GraphicsWindowWin32.cpp is this?
> >
> > Robert.
> >
>
> Ok my reported output is the same with:
> The stable version
> The SVN version
> The version that you gave me on the mailing list
>
> i allways got
>
>
> osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT =1
> osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_ALT =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL =0
>
> osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_META =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_META =0
> osgGA::GUIEventAdapter::MODKEY_NUM_LOCK =4096
> osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK =0
>
> osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_ALT =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT =0
>  osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL =64
> osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_META =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_META =0
> osgGA::GUIEventAdapter::MODKEY_NUM_LOCK =4096
> osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK =0
>
> osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_ALT =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT =0
>  osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_META =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_META =0
> osgGA::GUIEventAdapter::MODKEY_NUM_LOCK =4096
> osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK =0
>
> osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_ALT =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT =0
>  osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL =0
>
> osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL =0
> osgGA::GUIEventAdapter::MODKEY_LEFT_META =0
> osgGA::GUIEventAdapter::MODKEY_RIGHT_META =0
> osgGA::GUIEventAdapter::MODKEY_NUM_LOCK =4096
> osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK =0
>
> and it s not CORRECT
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to