18 #ifndef EQ_AGL_EVENTHANDLER_H
19 #define EQ_AGL_EVENTHANDLER_H
21 #include <eq/defines.h>
24 #include <eq/client/agl/types.h>
25 #include <eq/client/eventHandler.h>
46 EventHandler( agl::WindowIF* window );
49 virtual ~EventHandler();
57 static void initMagellan( Node* node );
64 static void exitMagellan( Node* node );
67 agl::WindowIF* getWindow()
const {
return _window; }
70 bool handleEvent( EventRef event );
73 agl::WindowIF*
const _window;
75 EventHandlerRef _eventHandler;
76 EventHandlerRef _eventDispatcher;
78 void _processWindowEvent( WindowEvent& event );
80 bool _processMouseEvent( WindowEvent& event );
81 void _processKeyEvent( WindowEvent& event );
83 uint32_t _getButtonState();
84 uint32_t _getButtonAction( EventRef event );
85 uint32_t _getKey( EventRef event );
93 #endif // EQ_AGL_EVENTHANDLER_H
Base class for window system-specific event handlers.