README-gesture.txt
changeset 7241 28602f5ca96d
parent 7222 2435b221d77d
child 7900 cc2289c332eb
equal deleted inserted replaced
7240:39eb4958950a 7241:28602f5ca96d
    26 event.dgesture.touchId    - the Id of the touch which performed the gesture.
    26 event.dgesture.touchId    - the Id of the touch which performed the gesture.
    27 event.dgesture.gestureId  - the unique id of the closest gesture to the performed stroke.
    27 event.dgesture.gestureId  - the unique id of the closest gesture to the performed stroke.
    28 event.dgesture.error      - the difference between the gesture template and the actual performed gesture. Lower error is a better match.
    28 event.dgesture.error      - the difference between the gesture template and the actual performed gesture. Lower error is a better match.
    29 event.dgesture.numFingers - the number of fingers used to draw the stroke.
    29 event.dgesture.numFingers - the number of fingers used to draw the stroke.
    30 
    30 
    31 ost 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).
    31 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).
    32 
    32 
    33 
    33 
    34 
    34 
    35 Saving:
    35 Saving:
    36 -------
    36 -------
    48 SDL_LoadDollarTemplates returns the number of templates successfully loaded.
    48 SDL_LoadDollarTemplates returns the number of templates successfully loaded.
    49 
    49 
    50 
    50 
    51 
    51 
    52 ===========================================================================
    52 ===========================================================================
    53 ulti Gestures
    53 Multi Gestures
    54 ===========================================================================
    54 ===========================================================================
    55 SDL provides simple support for pinch/rotate/swipe gestures. 
    55 SDL provides simple support for pinch/rotate/swipe gestures. 
    56 Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields:
    56 Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields:
    57 
    57 
    58 event.mgesture.touchId - the Id of the touch on which the gesture was performed.
    58 event.mgesture.touchId - the Id of the touch on which the gesture was performed.