From 9daa79b5d7300328e4568cbf72e1c7820b08e977 Mon Sep 17 00:00:00 2001 From: Albert Zeyer Date: Tue, 17 Nov 2009 16:40:15 +0100 Subject: [PATCH] disable mousewrapper input stuff for non-iphone-systems because it breaks keyboard :P --- src/sdl/CInput.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sdl/CInput.cpp b/src/sdl/CInput.cpp index 2f4dc2ae0..e8e5e8710 100644 --- a/src/sdl/CInput.cpp +++ b/src/sdl/CInput.cpp @@ -18,6 +18,10 @@ #include "gp2x.h" #endif +#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR) +#define MOUSEWRAPPER 1 +#endif + CInput::CInput() { resetControls(); } @@ -216,16 +220,20 @@ void CInput::pollEvents() case SDL_JOYBUTTONUP: processJoystickButton(0); break; +#ifdef MOUSEWRAPPER case SDL_MOUSEBUTTONDOWN: case SDL_MOUSEBUTTONUP: case SDL_MOUSEMOTION: processMouse(Event); break; +#endif } } +#ifdef MOUSEWRAPPER // Handle mouse emulation layer processMouse(); - +#endif + // Check, if LALT+ENTER was pressed if(getHoldedKey(KLALT) && getPressedKey(KENTER)) {