Fixed warning
This commit is contained in:
parent
583ecccd75
commit
7c1a967a02
@ -25,6 +25,7 @@ class EscapeHandler : public osgGA::GUIEventHandler
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -95,7 +96,7 @@ int main(int argc,char** argv)
|
|||||||
|
|
||||||
// add a custom escape handler, but disable the standard viewer one to enable the vnc images to handle
|
// add a custom escape handler, but disable the standard viewer one to enable the vnc images to handle
|
||||||
// the escape without it getting caught by the viewer.
|
// the escape without it getting caught by the viewer.
|
||||||
viewer.addEventHandler(new EscapeHandler);
|
viewer.addEventHandler(new EscapeHandler);
|
||||||
viewer.setKeyEventSetsDone(0);
|
viewer.setKeyEventSetsDone(0);
|
||||||
|
|
||||||
return viewer.run();
|
return viewer.run();
|
||||||
|
Loading…
Reference in New Issue
Block a user