> I am porting an applicaion in SGI IrixGL using Forms libaray to one using
> OpenGL and XForms. What would be a right replacement for the old function
> fl_qdevice(LEFTMOUSE)?
You would write a ButtonPress event handler:
static int button_press_event_handler( FL_OBJECT *obj, Window window,
int window_width, int
window_height,
XEvent *xevent, void *user_data
)
{
XButtonEvent *x_button_event = ( XButtonEvent *) xevent;
switch ( x_button_event->button ) {
case Button1: {
[...]
and add the handler:
fl_add_canvas_handler( canvas, ButtonPress,
button_press_event_handler, NULL );
[...]
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/