Mercurial > sdl-ios-xcode
diff src/SDL_android.cpp @ 5001:77df56570442
Added "mouse" support for the Android touch screen
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 13 Jan 2011 18:31:15 -0800 |
parents | 6a10693e66c3 |
children |
line wrap: on
line diff
--- a/src/SDL_android.cpp Thu Jan 13 18:03:56 2011 -0800 +++ b/src/SDL_android.cpp Thu Jan 13 18:31:15 2011 -0800 @@ -26,6 +26,7 @@ extern "C" { #include "events/SDL_events_c.h" #include "video/android/SDL_androidkeyboard.h" +#include "video/android/SDL_androidtouch.h" #include "video/android/SDL_androidvideo.h" /* Impelemented in audio/android/SDL_androidaudio.c */ @@ -124,13 +125,7 @@ JNIEnv* env, jclass jcls, jint action, jfloat x, jfloat y, jfloat p) { -#ifdef DEBUG - __android_log_print(ANDROID_LOG_INFO, "SDL", - "SDL: native touch event %d @ %f/%f, pressure %f\n", - action, x, y, p); -#endif - - //TODO: Pass this off to the SDL multitouch stuff + Android_OnTouch(action, x, y, p); } // Accelerometer