Mercurial > sdl-ios-xcode
diff src/events/SDL_touch.c @ 4689:f9ab8df6d45a
Added README.touch and README.gesture. Moved touchtest/gestureSDLTest to test/testgesture
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Sun, 15 Aug 2010 00:36:28 -0400 |
parents | 15dfe42edbfd |
children | fff50e86c891 |
line wrap: on
line diff
--- a/src/events/SDL_touch.c Fri Aug 13 23:08:32 2010 -0400 +++ b/src/events/SDL_touch.c Sun Aug 15 00:36:28 2010 -0400 @@ -351,6 +351,7 @@ event.tfinger.touchId = id; 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; event.tfinger.fingerId = fingerid; @@ -470,8 +471,7 @@ event.tfinger.x = x; event.tfinger.y = y; event.tfinger.dx = xrel; - event.tfinger.dy = yrel; - + event.tfinger.dy = yrel; event.tfinger.pressure = pressure; event.tfinger.state = touch->buttonstate;