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.

This commit is contained in:
wrenczes
2011-06-08 09:57:43 +00:00
parent c859d35c0b
commit 97dfc9f4bc
@@ -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;
}