Mercurial > sdl-ios-xcode
diff README.gesture @ 4690:baf8195aeb92
Updated README's
author | Jim Grandpre <jim.tla@gmail.com> |
---|---|
date | Thu, 19 Aug 2010 13:47:12 -0400 |
parents | f9ab8df6d45a |
children | 2ede56a19f2f |
line wrap: on
line diff
--- a/README.gesture Sun Aug 15 00:36:28 2010 -0400 +++ b/README.gesture Thu Aug 19 13:47:12 2010 -0400 @@ -5,7 +5,7 @@ Gestures can be performed with any number of fingers (the centroid of the fingers must follow the path of the gesture), but the number of fingers must be constant (a finger cannot go down in the middle of a gesture). The path of a gesture is considered the path from the time when the final finger went down, to the first time any finger comes up. -Dollar gestures are assigned an Id based on a hash function. This is guaranteed to remain constant for a given gesture. There is a (small) chance that two different gestures will be assigned the same ID. In this simply re-recording on of the gestures should result in a different ID. +Dollar gestures are assigned an Id based on a hash function. This is guaranteed to remain constant for a given gesture. There is a (small) chance that two different gestures will be assigned the same ID. In this case, simply re-recording one of the gestures should result in a different ID. Recording: ---------- @@ -19,7 +19,6 @@ event.dgesture.gestureId - the unique id of the recoreded gesture. - Performing: ----------- As long as there is a dollar gesture assigned to a touch, every finger-up event will also cause an SDL_DOLLARGESTURE event with the following fields: @@ -53,7 +52,7 @@ =========================================================================== Multi Gestures =========================================================================== -SDL provides simple support to pinch/rotate/swipe gestures. +SDL provides simple support for pinch/rotate/swipe gestures. Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields: event.mgesture.touchId - the Id of the touch on which the gesture was performed.