[osg-submissions] osgGA: complete super/hyper modifier support
Robert Osfield
robert.osfield at gmail.com
Fri Apr 11 03:10:51 PDT 2008
Thanks Melchior, changes merged and submitted to SVN.
On Wed, Apr 9, 2008 at 3:08 PM, Melchior FRANZ <melchior.franz at gmail.com>
wrote:
> The GUIEventAdapter header file had KeySymbols for the super and
> hyper keys defined already, but these modifiers were missing in
> GUIEventAdapter::ModKeyMask, and the EventQueue ingored them as well.
>
> The attached diff/archive adds the missing parts for Super/Hyper
> modifier key support.
>
>
> I'm aware that this might not be supported on all systems/keyboards
> out of the box, but decided to submit it anyway because:
>
> - developers are aware of differences between input devices
> (Some mice have scroll wheels, others don't. Some have five or
> more buttons, some have only one. Some keyboards don't have
> numpads, some have AltGr, some don't etc.)
>
> - even if someone relies on Hyper/Super in distributed software,
> this is easy to fix and doesn't create lock-in conditions
>
> - while the names Hyper/Super may only be common on X11, they are
> just symbol names and not OS-specific
>
> - even though some systems might not offer these additional modifiers
> by default, it's likely that all of them have at least 8 modifier
> levels internally, so it should only be a matter of OS configuration
> to make them work
>
> - having super/hyper available is useful to offer a user ways
> to define local key definitions that are safe from collisions with
> predefined "official" key assignments
>
>
>
> Changed Files:
> src/osgGA/EventQueue.cpp
> include/osgGA/GUIEventAdapter
> src/osgViewer/GraphicsWindowX11.cpp
> examples/osgkeyboard/osgkeyboard.cpp
>
> m.
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080411/ea8e2440/attachment.htm
More information about the osg-submissions
mailing list