diff options
| author | David-John Willis | 2011-03-08 20:38:56 +0000 |
|---|---|---|
| committer | David-John Willis | 2011-03-24 21:24:05 +0000 |
| commit | b95013dfe25d75d39c7deb69ee1a63f93a4a495f (patch) | |
| tree | aca9302c32044c3b4f9a416f5f840b18c6e474b9 /backends/platform/openpandora/op-sdl.h | |
| parent | 0fb15847c6c195945b186aad9cc29dead154078a (diff) | |
| download | scummvm-rg350-b95013dfe25d75d39c7deb69ee1a63f93a4a495f.tar.gz scummvm-rg350-b95013dfe25d75d39c7deb69ee1a63f93a4a495f.tar.bz2 scummvm-rg350-b95013dfe25d75d39c7deb69ee1a63f93a4a495f.zip | |
OPENPANDORA: Refactor OpenPandora backend and move events and graphics into modular backend style.
Diffstat (limited to 'backends/platform/openpandora/op-sdl.h')
| -rw-r--r-- | backends/platform/openpandora/op-sdl.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/backends/platform/openpandora/op-sdl.h b/backends/platform/openpandora/op-sdl.h index 8561b42498..93c82ca397 100644 --- a/backends/platform/openpandora/op-sdl.h +++ b/backends/platform/openpandora/op-sdl.h @@ -18,15 +18,18 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * $URL$ - * $Id$ - * */ #ifndef OP_SDL_H #define OP_SDL_H +#if defined(OPENPANDORA) + +#include "backends/base-backend.h" #include "backends/platform/sdl/sdl.h" +#include "backends/platform/sdl/posix/posix.h" +#include "backends/events/openpandora/op-events.h" +#include "backends/graphics/openpandora/op-graphics.h" #define __OPENPANDORA__ #define MIXER_DOUBLE_BUFFERING 1 @@ -35,25 +38,18 @@ #define PATH_MAX 255 #endif -class OSystem_OP : public OSystem_SDL { +class OSystem_OP : public OSystem_POSIX { public: OSystem_OP() {} - /* Events */ - bool handleKeyDown(SDL_Event &ev, Common::Event &event); - bool handleKeyUp(SDL_Event &ev, Common::Event &event); - bool handleMouseButtonDown(SDL_Event &ev, Common::Event &event); - bool handleMouseButtonUp(SDL_Event &ev, Common::Event &event); - - /* Graphics */ - bool loadGFXMode(); - /* Platform Setup Stuff */ void addSysArchivesToSearchSet(Common::SearchSet &s, int priority); void initBackend(); + void initSDL(); void quit(); protected: }; #endif +#endif //OP_SDL_H |
