15 #include <vsg/app/Viewer.h>
16 #include <vsg/ui/KeyEvent.h>
28 KeySymbol closeKey = KEY_Escape;
34 if (viewer) viewer->close();
39 if (closeKey != KEY_Undefined && keyPress.keyBase == closeKey) close();
CloseHandler event handler used to respond to close events generated by a Window.
Definition: CloseHandler.h:23
CloseWindowEvent represents a window close event.
Definition: WindowEvent.h:87
KeyPressEvent represents a key press event.
Definition: KeyEvent.h:309
TerminateEvent represents an application termination event.
Definition: ApplicationEvent.h:24
Definition: observer_ptr.h:24