22 #ifndef _WII_OSYSTEM_H_ 23 #define _WII_OSYSTEM_H_ 28 #include <gxflux/gfx.h> 30 #include "base/main.h" 31 #include "common/fs.h" 32 #include "common/rect.h" 33 #include "common/events.h" 34 #include "backends/base-backend.h" 35 #include "graphics/paletteman.h" 36 #include "graphics/surface.h" 37 #include "audio/mixer_intern.h" 43 extern bool reset_btn_pressed;
44 extern bool power_btn_pressed;
46 #ifdef DEBUG_WII_MEMSTATS 47 extern void wii_memstats(
void);
58 bool _cursorDontScale;
59 bool _cursorPaletteDisabled;
61 bool _cursorPaletteDirty;
64 u16 _gameWidth, _gameHeight;
67 gfx_screen_coords_t _coordsGame;
72 u16 _overlayWidth, _overlayHeight;
74 uint16 *_overlayPixels;
75 gfx_screen_coords_t _coordsOverlay;
76 gfx_tex_t _texOverlay;
80 u32 _lastScreenUpdate;
81 u16 _currentWidth, _currentHeight;
82 f32 _currentXScale, _currentYScale;
84 s32 _configGraphicsMode;
85 s32 _actualGraphicsMode;
96 bool _optionsDlgActive;
101 s32 _mouseX, _mouseY;
102 s32 _mouseHotspotX, _mouseHotspotY;
116 void updateScreenResolution();
117 void switchVideoMode(
int mode);
118 bool needsScreenUpdate();
119 void updateMousePalette();
126 void updateEventScreenResolution();
129 void showOptionsDialog();
139 gmDoubleStrikeFiltered
160 virtual void initSize(uint width, uint height,
167 void setPalette(
const byte *colors, uint start, uint num)
override;
168 void grabPalette(byte *colors, uint start, uint num)
const override;
172 int w,
int h)
override;
176 void setShakePos(
int shakeXOffset,
int shakeYOffset)
override;
184 int x,
int y,
int w,
int h)
override;
192 virtual void setMouseCursor(
const void *buf, uint w, uint h,
int hotspotX,
193 int hotspotY, uint32 keycolor,
198 uint32
getMillis(
bool skipRecord =
false)
override;
203 typedef void (*SoundProc)(
void *param, byte *buf,
int len);
205 void quit()
override;
Audio::Mixer * getMixer() override
virtual void copyRectToOverlay(const void *buf, int pitch, int x, int y, int w, int h) override
void getTimeAndDate(TimeDate &td, bool skipRecord=false) const override
void engineInit() override
void engineDone() override
void hideOverlay() override
Definition: fs-factory.h:31
void warpMouse(int x, int y) override
Feature
Definition: system.h:403
virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format) override
Common::MutexInternal * createMutex() override
void clearOverlay() override
const GraphicsMode * getSupportedGraphicsModes() const override
int getGraphicsMode() const override
int16 getOverlayHeight() override
int16 getOverlayWidth() override
PaletteManager * getPaletteManager() override
Definition: osystem.h:165
FilesystemFactory * getFilesystemFactory() override
void setPalette(const byte *colors, uint start, uint num) override
Definition: mixer_intern.h:58
void grabPalette(byte *colors, uint start, uint num) const override
void setCursorPalette(const byte *colors, uint start, uint num) override
void unlockScreen() override
void updateScreen() override
bool setGraphicsMode(int mode, uint flags=kGfxModeNoFlags) override
int16 getHeight() override
bool hasFeature(Feature f) override
Common::String getSystemLanguage() const override
bool showMouse(bool visible) override
bool isOverlayVisible() const override
Definition: osystem.h:180
virtual void copyRectToScreen(const void *buf, int pitch, int x, int y, int w, int h) override
void setFeatureState(Feature f, bool enable) override
bool pollEvent(Common::Event &event) override
Definition: base-backend.h:44
void delayMillis(uint msecs) override
Graphics::PixelFormat getOverlayFormat() const override
void grabOverlay(Graphics::Surface &surface) override
int getDefaultGraphicsMode() const override
void showOverlay(bool inGUI) override
virtual void setMouseCursor(const void *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale, const Graphics::PixelFormat *format, const byte *mask) override
void setShakePos(int shakeXOffset, int shakeYOffset) override
uint32 getMillis(bool skipRecord=false) override
Definition: paletteman.h:47
int16 getWidth() override
void initBackend() override
Graphics::Surface * lockScreen() override
void logMessage(LogMessageType::Type type, const char *message) override
bool getFeatureState(Feature f) override