[osg-users] Passing input to viewer/camera (using osg with custom input handler)
antiro black
antiro42 at gmail.com
Sat Sep 16 04:26:27 PDT 2017
Hi,
I am trying to incorporate OSG into a system that has its own input
handling and abstraction layers. Most of the input is handled by the
different components of the system, but I want OSG to handle the camera
input.
As such I need forward a part of my input to the OSG viewer (or perhaps
directly to its camera?).
I couldn't find any information about this online so I started browsing
through the code and I think that I need to create a class that inherits
from osgGA::Device which would then be able to add events to its queue to
be handled by whatever its attached to.
I do not know how to create such events however, I looked at the
osgGA::GUIEventAdaptor, but that has a protected constructor so I guess its
not meant to be used directly.
Any advice would be most welcome!
Thank you!
Cheers,
antiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170916/30428cd0/attachment.htm>
More information about the osg-users
mailing list