Basic OpenGL utilities libraries like GLUT that provide some mouse events in the mouseEvent(int button, int state, int x, int y); function, but this functionality is not native to OpenGL.
Event->x()/y() sounds more like an OSG event handling, and there are plenty of OSG examples out there that process mouse and keyboards events. Christian 2016-12-02 10:20 GMT+01:00 Sebastian Messerschmidt < sebastian.messerschm...@gmx.de>: > Hi, > > 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 > topic-name): > > 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. > > Cheers > Sebastian > > > > >> ... >> >> Thank you! >> >> Cheers, >> Rambabu >> >> ------------------ >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=69577#69577 >> >> >> >> >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org