From 97dfc9f4bc6d43669b58a070d6d3a46407a96906 Mon Sep 17 00:00:00 2001 From: wrenczes Date: Wed, 8 Jun 2011 09:57:43 +0000 Subject: [PATCH] Fix up passing by address on the float values. This is leftover crud from my attempts to pass float* instead of by value. I still can't make sense of what's wrong with the FingerDown calls - the mouse calls pass values in correctly, but the touch calls seem to corrupt the stack. --- JGE/Dependencies/SDL/src/video/android/SDL_androidtouch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JGE/Dependencies/SDL/src/video/android/SDL_androidtouch.c b/JGE/Dependencies/SDL/src/video/android/SDL_androidtouch.c index de7cdc325..a7ec2da40 100644 --- a/JGE/Dependencies/SDL/src/video/android/SDL_androidtouch.c +++ b/JGE/Dependencies/SDL/src/video/android/SDL_androidtouch.c @@ -82,7 +82,7 @@ void Android_OnTouch(int action, float x, float y, float p) switch(action) { case ACTION_DOWN: - SDL_SendFingerDown(touch->id, 1, SDL_TRUE, &x, &y, &p); + SDL_SendFingerDown(touch->id, 1, SDL_TRUE, x, y, p); //SDL_SendMouseButton(Android_Window, SDL_PRESSED, SDL_BUTTON_LEFT); break; @@ -91,7 +91,7 @@ void Android_OnTouch(int action, float x, float y, float p) break; case ACTION_UP: - SDL_SendFingerDown(touch->id, 1, SDL_FALSE, &x, &y, p); + SDL_SendFingerDown(touch->id, 1, SDL_FALSE, x, y, p); //SDL_SendMouseButton(Android_Window, SDL_RELEASED, SDL_BUTTON_LEFT); break; }