SDL++
C++wrapperfortheSDLlibrary.
|
00001 00021 #ifndef SDL_EVENT_SIMPLECOMPARATOR_H 00022 #define SDL_EVENT_SIMPLECOMPARATOR_H 00023 00024 #include <SDL.h> 00025 00026 namespace sdl { 00027 namespace event { 00034 template<int SDL_EVENT_TYPE> 00035 struct SimpleComparator { 00043 static bool compare (const SDL_Event* event) { return event->type == SDL_EVENT_TYPE; }; 00044 }; //SimpleComparator 00045 }; //event 00046 }; //sdl 00047 00048 #endif //SDL_EVENT_SIMPLECOMPARATOR_H 00049