Mercurial > sdl-ios-xcode
diff src/events/SDL_touch.c @ 4644:fb500b3e1717
Added pressure support for touch events.
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Sat, 29 May 2010 02:09:16 -0400 |
parents | 8806b78988f7 |
children | 0375d020e7e3 |
line wrap: on
line diff
--- a/src/events/SDL_touch.c Sat May 29 01:47:19 2010 -0400 +++ b/src/events/SDL_touch.c Sat May 29 02:09:16 2010 -0400 @@ -424,6 +424,7 @@ 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);