#ifndef DEF_XCONTROLLER_H #define DEF_XCONTROLLER_H #include "SDL.h" #include #include #include "xEventHandler.h" using namespace std; class xController{ public: xController(); ~xController(); // called in scheduling void handleEvent(SDL_Event* event); // manage handlers void attachEvent(xEventHandler* handler); void detachEvent(xEventHandler* handler); private: // event handlers set _handlers; // thread safety mutex _mutex; }; #endif