README.gesture
changeset 6987 7084af936d82
parent 4693 2ede56a19f2f
     1.1 --- a/README.gesture	Sat Mar 09 10:35:12 2013 -0800
     1.2 +++ b/README.gesture	Sun Mar 10 09:03:38 2013 -0700
     1.3 @@ -16,7 +16,7 @@
     1.4  A SDL_DOLLARRECORD event is a dgesture with the following fields:
     1.5  
     1.6  event.dgesture.touchId   - the Id of the touch used to record the gesture.
     1.7 -event.dgesture.gestureId - the unique id of the recoreded gesture.
     1.8 +event.dgesture.gestureId - the unique id of the recorded gesture.
     1.9  
    1.10  
    1.11  Performing:
    1.12 @@ -28,7 +28,7 @@
    1.13  event.dgesture.error      - the difference between the gesture template and the actual performed gesture. Lower error is a better match.
    1.14  event.dgesture.numFingers - the number of fingers used to draw the stroke.
    1.15  
    1.16 -Most programs will want to define an appropriate error threshold and check to be sure taht the error of a gesture is not abnormally high (an indicator that no gesture was performed). 
    1.17 +Most programs will want to define an appropriate error threshold and check to be sure that the error of a gesture is not abnormally high (an indicator that no gesture was performed).
    1.18  
    1.19  
    1.20  
    1.21 @@ -38,14 +38,14 @@
    1.22  
    1.23  To save all currently loaded templates, call SDL_SaveAllDollarTemplates(src) where source is an SDL_RWops pointer to the file where the gesture will be stored.
    1.24  
    1.25 -Both functions return the number of gestures sucessfully saved.
    1.26 +Both functions return the number of gestures successfully saved.
    1.27  
    1.28  
    1.29  Loading:
    1.30  --------
    1.31  To load templates from a file, call SDL_LoadDollarTemplates(touchId,src) where touchId is the id of the touch to load to (or -1 to load to all touch devices), and src is an SDL_RWops pointer to a gesture save file. 
    1.32  
    1.33 -SDL_LoadDollarTemplates returns the number of templates sucessfully loaded. 
    1.34 +SDL_LoadDollarTemplates returns the number of templates successfully loaded.
    1.35  
    1.36  
    1.37  
    1.38 @@ -56,8 +56,8 @@
    1.39  Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields:
    1.40  
    1.41  event.mgesture.touchId - the Id of the touch on which the gesture was performed.
    1.42 -event.mgesture.x       - the normalized x cooridinate of the gesture. (0..1)
    1.43 -event.mgesture.y       - the normalized y cooridinate of the gesture. (0..1)
    1.44 +event.mgesture.x       - the normalized x coordinate of the gesture. (0..1)
    1.45 +event.mgesture.y       - the normalized y coordinate of the gesture. (0..1)
    1.46  event.mgesture.dTheta  - the amount that the fingers rotated during this motion.
    1.47  event.mgesture.dDist   - the amount that the fingers pinched during this motion.
    1.48  event.mgesture.numFingers - the number of fingers used in the gesture.