From fd407eeca3f2d50bc1a005bbcfd171369daa4f5f Mon Sep 17 00:00:00 2001 From: John Willis Date: Tue, 7 Sep 2010 14:17:31 +0000 Subject: 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 --- backends/platform/gp2xwiz/gp2xwiz-sdl.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'backends/platform/gp2xwiz/gp2xwiz-sdl.h') 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 -- cgit v1.2.3