From 26dc4c24256472898f4388de73699a5f54f4a2cf Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 19 Aug 2010 12:43:37 +0000 Subject: DINGOO: new port. Patch #3039277 svn-id: r52210 --- backends/platform/dingux/dingux.h | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 backends/platform/dingux/dingux.h (limited to 'backends/platform/dingux/dingux.h') diff --git a/backends/platform/dingux/dingux.h b/backends/platform/dingux/dingux.h new file mode 100644 index 0000000000..929abc0587 --- /dev/null +++ b/backends/platform/dingux/dingux.h @@ -0,0 +1,44 @@ + +#ifndef SDL_DINGUX_COMMON_H +#define SDL_DINGUX_COMMON_H + +#include + +#include "backends/base-backend.h" +#include "backends/platform/sdl/sdl.h" + +#if defined(DINGUX) + +enum { + GFX_HALF = 12 +}; + +class OSystem_SDL_Dingux : public OSystem_SDL { +public: + virtual bool hasFeature(Feature f); + virtual void setFeatureState(Feature f, bool enable); + virtual bool getFeatureState(Feature f); + virtual int getDefaultGraphicsMode() const; + void initSize(uint w, uint h); + const OSystem::GraphicsMode *getSupportedGraphicsModes() const; + bool setGraphicsMode(const char *name); + bool setGraphicsMode(int mode); + void setGraphicsModeIntern(); + void internUpdateScreen(); + void showOverlay(); + void hideOverlay(); + bool loadGFXMode(); + void drawMouse(); + void undrawMouse(); + void warpMouse(int, int); + void fillMouseEvent(Common::Event&, int, int); + +protected: + virtual bool remapKey(SDL_Event &ev, Common::Event &event); +}; + + +#endif + +#endif + -- cgit v1.2.3