aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2xwiz/gp2xwiz-sdl.h
diff options
context:
space:
mode:
authorJohn Willis2010-09-07 14:17:31 +0000
committerJohn Willis2010-09-07 14:17:31 +0000
commitfd407eeca3f2d50bc1a005bbcfd171369daa4f5f (patch)
tree187d262fca4340c1423a9bab6b99b54dc3bb0df0 /backends/platform/gp2xwiz/gp2xwiz-sdl.h
parent532663c742150b341de22a65da4fd761da6f497a (diff)
downloadscummvm-rg350-fd407eeca3f2d50bc1a005bbcfd171369daa4f5f.tar.gz
scummvm-rg350-fd407eeca3f2d50bc1a005bbcfd171369daa4f5f.tar.bz2
scummvm-rg350-fd407eeca3f2d50bc1a005bbcfd171369daa4f5f.zip
GP2XWIZ: Refactor backend.
* Add support for TouchScreen 'Tap Modes' Left Click, Right Click and Hover. * Rename OSystem_GP2XWIZ to OSystem_GPH to start the work on supporting a unified backend codebase for the GP2X, Wiz and Caanoo. * Sort out bugs in Caanoo input code. * Rework GP2XWiz input code to support switching new TouchScreen modes. svn-id: r52619
Diffstat (limited to 'backends/platform/gp2xwiz/gp2xwiz-sdl.h')
-rw-r--r--backends/platform/gp2xwiz/gp2xwiz-sdl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/backends/platform/gp2xwiz/gp2xwiz-sdl.h b/backends/platform/gp2xwiz/gp2xwiz-sdl.h
index e312d0f26d..bae9a87771 100644
--- a/backends/platform/gp2xwiz/gp2xwiz-sdl.h
+++ b/backends/platform/gp2xwiz/gp2xwiz-sdl.h
@@ -40,9 +40,9 @@ enum {
#define PATH_MAX 255
#endif
-class OSystem_GP2XWIZ : public OSystem_SDL {
+class OSystem_GPH : public OSystem_SDL {
public:
- OSystem_GP2XWIZ() {}
+ OSystem_GPH() {}
/* Graphics */
void initSize(uint w, uint h);
@@ -59,7 +59,6 @@ public:
void hideOverlay();
/* Event Stuff */
- bool pollEvent(Common::Event &event);
void moveStick();
void fillMouseEvent(Common::Event&, int, int);
void warpMouse(int, int);
@@ -72,6 +71,11 @@ public:
protected:
bool _stickBtn[32];
+
+ bool handleMouseButtonDown(SDL_Event &ev, Common::Event &event);
+ bool handleMouseButtonUp(SDL_Event &ev, Common::Event &event);
+ bool handleJoyButtonDown(SDL_Event &ev, Common::Event &event);
+ bool handleJoyButtonUp(SDL_Event &ev, Common::Event &event);
};
#endif