[osg-users] x and y coordinates

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Fri Dec 2 01:20:31 PST 2016


> Hi,In opengl we can get event->x() and event->y() mouse events are there.For osg how to get these events.
Thats non-sense. OpenGL doesn't deal with input events.
See the osgkeyboardmouse example.

Apart from the usual "try to use your brain first and present some 
questions with actual effort put into them". (This btw. starts with the 

First advice: Check the examples first. Most of them are named very and 
executing them might give you an idea if they are what you are looking for.

Second advice: There is a mailing/list, use the search functionality. 
Chances your question has been asked exist...

Also you've been asking a MouseEvent-related questions a couple of days 
before. Obviously you didn't even bother to look into the 
trackball-manipulator. If you're following the bread-crumbs left there 
(parent-classes OrbitManipulator and the StandardManipulator, you will 
find a lot of example code how to use mouse events.


> ...
> Thank you!
> Cheers,
> Rambabu
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69577#69577
> _______________________________________________
> 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