[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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.