Hi Renan,

To check when a key is pressed you use the
osgGA::GUIEventAdapter::KEYUP or osgGA::GUIEventAdapter::KEYDOWN event
types, the osgGA::GUIEventHandler::DRAG is just for when a mouse is
moved when a mouse button is pressed.  There are plenty of examples of
EventHandlers in action in both the OSG examples and NodeKits like
src/osgGA and src/osgViewer so have a search through these codes
looking for instance of osgGA::GUIEventAdapter::

Robert.

On Wed, Oct 8, 2008 at 2:37 PM, Renan Mendes <[EMAIL PROTECTED]> wrote:
> Hi, everyone. My messages have been kind of ignored these days, but I'll
> give it another try with a different problem:
>
> In my GUIEventHandler derived class, I'm doing the usual override of the
> osgGA::GUIEventHandler::handle() function. Well, I made that whole
> switch-case structure and I would like to know if it would be possible to
> get, for example, an event inside another one. Let me give you an example:
>
> switch(ea.getEventType())
> {
>      case(osgGA::GUIEventHandler::DRAG)
>      {
>              // Here I'd like to check if a key was pressed -- how can I do
> it?
>      }
> }
>
> I'd appreciate any help.
>
> Thanks,
>
> Renan
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to