aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dingux/dingux.h
blob: 929abc05878db8289ab3f0eca9e6878539ca2dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef SDL_DINGUX_COMMON_H
#define SDL_DINGUX_COMMON_H

#include <SDL.h>

#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