Problem with SDL_Touch after last SDL update

Hi,

After I updated to the latest SDL HG for android I got a weird error.
"error: ‘SDL_Touch’ was not declared in this scope"
It used to work before the last update.
I suspect its the “Added a mouse ID to the mouse events, which set to the
special value SDL_TOUCH_MOUSEID for mouse events simulated by touch
input.” update.

In this line in my: int main( int argc, char argv[] )
SDL_Touch
Finger_State;

In case SDL_FINGERDOWN:
I use it like that:

A A A A A A A A A A A A A A A A A A A Finger_State =
SDL_GetTouch(gv.event.tfinger.touchId);
A A A A A A A A A A A A A A A A A A A fx =
(GLuint)(((GLfloat)gv.event.tfinger.x / Finger_State->xres) *
SCREEN_WIDTH);
A A A A A A A A A A A A A A A A A A A fy =
(GLuint)(((GLfloat)gv.event.tfinger.y / Finger_State->yres) *
SCREEN_HEIGHT);

Can anyone help me with that?

thanks,

Giorgos

After I updated to the latest SDL HG for android I got a weird error.
"error: ‘SDL_Touch’ was not declared in this scope"
It used to work before the last update.

One of the last breaking changes before the API freeze has been to scale
tfinger.x/y from 0 to 1, so you don’t need the SDL_GetTouch call, your code:

                Finger_State = SDL_GetTouch(gv.event.tfinger.touchId);
                fx = (GLuint)(((GLfloat)gv.event.tfinger.x /

Finger_State->xres) * SCREEN_WIDTH);
fy = (GLuint)(((GLfloat)gv.event.tfinger.y /
Finger_State->yres) * SCREEN_HEIGHT);

Can be simplified this way:

fx = (GLuint)((GLfloat)gv.event.tfinger.x * SCREEN_WIDTH);
fy = (GLuint)((GLfloat)gv.event.tfinger.y * SCREEN_HEIGHT);–
Bye,
Gabry