[osg-users] osg+QT MODKEY How to

Robert Osfield robert.osfield at gmail.com
Sat Mar 7 01:51:55 PST 2009


Hi Legeo,

How are you integrating OSG and QT?

Robert.

On Sat, Mar 7, 2009 at 8:14 AM, legeochen <legeochen at gmail.com> wrote:
> Hi all,
>    I'm trying to add a Modkey event handler to my application with osg and
> qt4. But it seems that the getModKeyMask() fuction fails to work. Return
> value of getModKeyMask() always is 0, even if I have a MODKEY pressed. And,
> this is my code:
>         if ( ea.getEventType() == osgGA::GUIEventAdapter::PUSH &&
>              ea.getButtonMask() == osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON
> &&
>              ea.getModKeyMask() == osgGA::GUIEventAdapter::MODKEY_SHIFT )
>          {
>             /*---------------------------------------------
>                     do something here
>             -------------------------------------------------*/
>         }
> How can I handle it? Thanks in advance!
>
> cheers
> legeo
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



More information about the osg-users mailing list