Commit e66a9e21 authored by Ken Martin's avatar Ken Martin
Browse files

added user defined method

parent 96b4c9b3
......@@ -284,7 +284,9 @@ void vlXRenderWindowInteractorCallback(Widget w,XtPointer client_data,
switch (ks)
{
case XK_e : exit(1); break;
case XK_u :
if (me->UserMethod) (*me->UserMethod)(me->UserMethodArg);
break;
case XK_r : //reset
{
me->FindPokedRenderer(((XKeyEvent*)event)->x,
......@@ -552,3 +554,4 @@ void vlXRenderWindowInteractor::FinishSettingUpNewWindow()
this->Size[0] = size[0];
this->Size[1] = size[1];
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment