Fixed gestureMulti. Disabled dollar gesture temporarily.

This commit is contained in:
Jim Grandpre 2010-08-04 23:17:30 -04:00
parent c219144751
commit bcd4b4df6f
6 changed files with 188 additions and 140 deletions

View file

@ -439,8 +439,8 @@ X11_PumpEvents(_THIS)
if(data->pressure < 0) data->pressure = 0;
break;
case ABS_MISC:
data->up = SDL_TRUE;
data->finger = ev[i].value;
if(ev[i].value == 0)
data->up = SDL_TRUE;
break;
}
break;
@ -453,22 +453,22 @@ X11_PumpEvents(_THIS)
if(data->up) {
SDL_SendFingerDown(touch->id,data->finger,
SDL_FALSE,data->x,data->y,
data->pressure);
data->pressure);
}
else if(data->x >= 0 || data->y >= 0)
SDL_SendTouchMotion(touch->id,data->finger,
SDL_SendTouchMotion(touch->id,data->finger,
SDL_FALSE,data->x,data->y,
data->pressure);
data->pressure);
//printf("Synched: %i tx: %i, ty: %i\n",
// data->finger,data->x,data->y);
data->x = -1;
data->y = -1;
data->pressure = -1;
data->finger = 0;
data->up = SDL_FALSE;
data->x = -1;
data->y = -1;
data->pressure = -1;
data->finger = 0;
data->up = SDL_FALSE;
break;
break;
}
}
}