Re: [Flightgear-devel] Keyboard weirdness: shift modifier stays on

2011-07-05 Thread Sylvain Mazet
OK, thanks for the suggestion.

This L_shft key release keycode was coming from my configuration:
I had enabled the option "use L_shft + R_shft'" to change keyboard map
(I switch from fr map to us map sometimes).

I disabled this option in my keyboard config,
and the key release key code is as expected
again for both L_shft and R_shft.

Thx,
Sylvain.


On Wed, Jun 29, 2011 at 4:59 PM, Csaba Halász wrote:

> On Wed, Jun 29, 2011 at 4:44 PM, Sylvain Mazet 
> wrote:
> > OK,
> >
> > I tracked this, I am answering myself for the record.
> >
> > 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.
> >
> > Maybe this concerns OSG people? Xorg people?
>
> Sounds like Xorg ... look in your keyboard configuration files.
> For reference, here is my xev output:
>
> KeyPress event, serial 29, synthetic NO, window 0x281,
>root 0x117, subw 0x0, time 775114491, (46,147), root:(981,280),
>state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
>XLookupString gives 0 bytes:
>XmbLookupString gives 0 bytes:
>XFilterEvent returns: False
>
> KeyRelease event, serial 29, synthetic NO, window 0x281,
>root 0x117, subw 0x0, time 775114555, (46,147), root:(981,280),
>state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
>XLookupString gives 0 bytes:
>XFilterEvent returns: False
>
> --
> Csaba/Jester
>
>
> --
> 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
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
--
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Keyboard weirdness: shift modifier stays on

2011-06-29 Thread Csaba Halász
On Wed, Jun 29, 2011 at 4:44 PM, Sylvain Mazet  wrote:
> OK,
>
> I tracked this, I am answering myself for the record.
>
> 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.
>
> Maybe this concerns OSG people? Xorg people?

Sounds like Xorg ... look in your keyboard configuration files.
For reference, here is my xev output:

KeyPress event, serial 29, synthetic NO, window 0x281,
root 0x117, subw 0x0, time 775114491, (46,147), root:(981,280),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x281,
root 0x117, subw 0x0, time 775114555, (46,147), root:(981,280),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

-- 
Csaba/Jester

--
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Keyboard weirdness: shift modifier stays on

2011-06-29 Thread Sylvain Mazet
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 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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Keyboard weirdness: shift modifier stays on

2011-06-28 Thread Sylvain Mazet
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
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel