[osg-users] Keyboard handler: SHIFT modifier doesn't work on Linux

4 views
Skip to first unread message

Michael Rubin

unread,
Nov 10, 2012, 9:03:36 AM11/10/12
to osg-...@lists.openscenegraph.org
Hello,

The SHIFT modifier does not appear to be working correctly on my Linux app (OSG 3.0.1) -- it is always on (so all typing in my debug console appears as upper-case).

I've seen posts like this (http://comments.gmane.org/gmane.games.flightgear.devel/65510) which claim that X is sending the incorrect events to the window, but using `xev` I've confirmed that my window (i.e. OSG) is receiving the correct events for shift down, shift up, etc. However, as a client of OSG, I'm not receiving correct modifiers (in the mask param of my callback function).

On Windows (also OSG 3.0.1), everything works as expected.

Does anyone have any suggestions that I could apply?

Thank you very much,
Mike

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51035#51035





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Robert Osfield

unread,
Nov 11, 2012, 4:34:40 AM11/11/12
to osg-...@lists.openscenegraph.org
Hi Michael,

Could you try the osgkeyboard example, I've just tried this on my Kubuntu 12.04 system and it's still working fine - the shift key on it's own, and A/a work just fine.

What type of windowing system are you using on your desktop and for the OSG?

Robert.

Michael Rubin

unread,
Nov 12, 2012, 1:50:58 PM11/12/12
to osg-...@lists.openscenegraph.org

robertosfield wrote:
>
> Could you try the osgkeyboard example
>


Example works fine -- thanks for the tip! I've tracked the issue (in my code) to masking against osgGA::GUIEventAdapter::KEY_Shift_L instead of (like the example) osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT.

Thank you very much for the quick response,
Mike

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51051#51051
Reply all
Reply to author
Forward
0 new messages