[osg-users] Intercepting Windows messages

Anders Backman andersb at cs.umu.se
Wed Nov 11 07:21:38 PST 2015


Hi.

Trying the 3DConnexion SpaceNavigator with OSG. However I would like to
stay away from VRPN and such dependencies...

I was wondering how to best intercept Windows messages from the
GraphicsWindowWin32 class.

This class has a virtual method handleNativeWindowingEvent which I would
like to override to catch custom messages from my device.

Would it be possible to implement a derived class and have that
instantiated instead of the standard osgViewer::GraphicsWindowWin32 one?

Or is there a different method to listen to the  messages:

( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )

Thanks,
Anders



-- 
__________________________________________
Anders Backman, HPC2N
90187 Umeå University, Sweden
anders at cs.umu.se http://www.hpc2n.umu.se
Cell: +46-70-392 64 67
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151111/5b6e3b57/attachment-0002.htm>


More information about the osg-users mailing list