glutKeyboardFunc and glutMouseFunc are simply functions to register callbacks. Since GTK+ is heavily callback-oriented, you could of course just register your handlers with g_signal_connect on the relevant signals.
Of course, you may need to add a wrapper function to get the appropriate signature. ----- Original Message ----- From: Rad Radish <[EMAIL PROTECTED]> Date: Monday, April 21, 2008 2:29 am Subject: [GtkGLExt] Handling mouse & keyboard with GLUT? > Hi > > Is there a way to simply use GLUT: glutMouseFunc and > glutKeyboardFunc to > handle 3d objects rotation when having OpenGL Drawing Area in > GTK+? Or > do I have to catch keyboard and mouse movements in GTK+ directly > and > then pass them to OpenGL scene? > > Kind regards > Rad Radish > _______________________________________________ > gtkglext-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtkglext-list > _______________________________________________ gtkglext-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkglext-list
