OK,
I tracked this, I am answering myself for the record.
On my system, I had to recompile OSG.
It seems on left-shift-key release, Xorg sends a release event with a wrong
keysym (XK_ISO_Prev_Group instead of XK_Shift_L).
Same thing for right shift key. On release, the X11 keysym is
XK_ISO_Next_Group instead of XK_Shift_R.
So i remap these in OSG through the _extendedKeymap of GraphicsWindowX11.
I add the following remappings in GraphicsWindowX11.cpp of osgViewer:
_extendedKeymap[XK_ISO_Prev_Group] =
osgGA::GUIEventAdapter::KEY_Shift_L;
_extendedKeymap[XK_ISO_Next_Group] =
osgGA::GUIEventAdapter::KEY_Shift_R;
Not sure this is the correct solution, though. It works for me.
Maybe this concerns OSG people? Xorg people?
Cheers,
Sylvain.
On Tue, Jun 28, 2011 at 7:23 PM, Sylvain Mazet <[email protected]>wrote:
> Hi all,
>
> First things first: I am a long time user of FlightGear (for play),
> I just love it.
>
> Since using FlightGear-2.0.0, I have a keyboard problem.
>
> Keyboard responds OK, except that the shift modifier,
> once activated, stays on forever.
> Example:
> 1) I start FlightGear,
> 2) I press 'x', I zoom in OK,
> 3) I press 'shift-x', I zoom out OK,
> 4) I press 'x', nothing happens. The shift modifier
> is still there (I activated the "dump" in keyboard.xml to see this).
>
> My system is an up-to-date Debian Linux Squeeze. I use gnome.
>
> I tried:
> - Simgear/FlightGear-2.0.0 bundle
> - Simgear/FlightGear git version (of yesterday: 2.3.0-something)
> - OpenSceneGraph 2.8.2, and latest 3.0.0 (I am not sure it has anything to
> do with it)
>
> I'll continue my investigations, but I could use some help...
> I am posting in case anybody has seen this behavior.
> I cannot find it described in the lists.
>
> Thanks for reading!
>
> Sylvain Mazet.
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel