23 #ifndef _OSYSTEM_DS_H_ 24 #define _OSYSTEM_DS_H_ 26 #include "backends/modular-backend.h" 27 #include "backends/events/ds/ds-events.h" 28 #include "backends/mixer/mixer.h" 29 #include "backends/platform/ds/background.h" 30 #include "backends/platform/ds/keyboard.h" 31 #include "graphics/surface.h" 32 #include "graphics/paletteman.h" 44 #ifdef DISABLE_TEXT_CONSOLE 48 bool _subScreenActive;
50 int _graphicsMode, _stretchMode;
51 bool _paletteDirty, _cursorDirty;
56 u16 _cursorPalette[256];
71 bool _disableCursorPalette;
81 static OSystem_DS *instance() {
return _instance; }
107 virtual void setPalette(
const byte *colors, uint start, uint num);
108 virtual void grabPalette(byte *colors, uint start, uint num)
const;
111 virtual void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
int w,
int h);
113 virtual void setShakePos(
int shakeXOffset,
int shakeYOffset);
120 virtual void copyRectToOverlay(
const void *buf,
int pitch,
int x,
int y,
int w,
int h);
129 virtual void setMouseCursor(
const void *buf, uint w, uint h,
int hotspotX,
int hotspotY, u32 keycolor,
bool dontScale,
const Graphics::PixelFormat *format,
const byte *mask);
133 virtual uint32
getMillis(
bool skipRecord =
false);
136 void doTimerCallback(
int interval = 10);
158 void setSwapLCDs(
bool swap);
160 void refreshCursor(u16 *dst,
const Graphics::Surface &src,
const uint16 *palette);
165 void setMainScreen(int32 x, int32 y, int32 sx, int32 sy);
166 void setSubScreen(int32 x, int32 y, int32 sx, int32 sy);
168 int _currentTimeMillis, _callbackTimer;
Definition: modular-backend.h:149
virtual void messageBox(LogMessageType::Type type, const char *message)
virtual void copyRectToOverlay(const void *buf, int pitch, int x, int y, int w, int h)
virtual int getGraphicsMode() const
virtual int16 getOverlayHeight()
virtual bool hasFeature(Feature f)
virtual void getTimeAndDate(TimeDate &td, bool skipRecord=false) const
Definition: background.h:33
virtual int getDefaultGraphicsMode() const
virtual void updateScreen()
virtual void showOverlay(bool inGUI)
virtual int16 getHeight()
virtual void setFeatureState(Feature f, bool enable)
Feature
Definition: system.h:403
virtual void grabOverlay(Graphics::Surface &surface)
virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority)
virtual void engineInit()
virtual PaletteManager * getPaletteManager()
Definition: osystem_ds.h:104
virtual Graphics::PixelFormat getOverlayFormat() const
virtual void clearOverlay()
virtual void delayMillis(uint msecs)
Definition: ds-events.h:30
virtual Common::String getSystemLanguage() const
virtual void initBackend()
virtual void setMouseCursor(const void *buf, uint w, uint h, int hotspotX, int hotspotY, u32 keycolor, bool dontScale, const Graphics::PixelFormat *format, const byte *mask)
Definition: keyboard.h:29
virtual void unlockScreen()
virtual bool setStretchMode(int mode)
virtual const GraphicsMode * getSupportedStretchModes() const
virtual void warpMouse(int x, int y)
virtual void engineDone()
Definition: archive.h:312
virtual void setShakePos(int shakeXOffset, int shakeYOffset)
virtual uint32 getMillis(bool skipRecord=false)
virtual const OSystem::GraphicsMode * getSupportedGraphicsModes() const
virtual int getStretchMode() const
virtual void clearFocusRectangle()
virtual bool isOverlayVisible() const
virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format)
virtual void logMessage(LogMessageType::Type type, const char *message)
Definition: osystem_ds.h:40
virtual void grabPalette(byte *colors, uint start, uint num) const
virtual bool setGraphicsMode(int mode, uint flags)
virtual void hideOverlay()
virtual Graphics::Surface * lockScreen()
virtual void setFocusRectangle(const Common::Rect &rect)
virtual int16 getOverlayWidth()
virtual void setCursorPalette(const byte *colors, uint start, uint num)
virtual bool showMouse(bool visible)
virtual bool getFeatureState(Feature f)
virtual void copyRectToScreen(const void *buf, int pitch, int x, int y, int w, int h)
virtual Common::HardwareInputSet * getHardwareInputSet()
virtual void setPalette(const byte *colors, uint start, uint num)
Definition: paletteman.h:47
virtual int getDefaultStretchMode() const
virtual Common::MutexInternal * createMutex()
Definition: background.h:62