Added pressure support for touch events.

This commit is contained in:
Jim Grandpre 2010-05-29 02:09:16 -04:00
parent 11b6823d3f
commit 3dcae4341c
6 changed files with 38 additions and 18 deletions

View file

@ -424,6 +424,7 @@ SDL_SendTouchMotion(int id, int fingerid, int relative,
event.tfinger.fingerId = (Uint8) fingerid;
event.tfinger.x = x;
event.tfinger.y = y;
event.tfinger.pressure = pressure;
event.tfinger.state = touch->buttonstate;
event.tfinger.windowID = touch->focus ? touch->focus->id : 0;
posted = (SDL_PushEvent(&event) > 0);