User Tools

Site Tools


editing_double_tap_interevent_duration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

editing_double_tap_interevent_duration [2019/01/29 19:06] (current)
Line 1: Line 1:
 +====== Editing Double Tap Interevent Duration ======
  
 +The "​interevent_duration"​ attribute of the <​point>​ tag is used to define the allowable time between gesture events.
 +
 +In the example below the "​n-double_tap"​ gesture uses "​interevent_duration_max"​ to define the maximum allowable time between successive TAP events. In this case if the amount of time between tap events is less than 300ms then the next matching criteria can be tested.
 +
 +<Gesture id="​n-double_tap"​ type="​double_tap">​
 +    <​match>​
 +        <​action>​
 +            <​initial>​
 +                <point event_duration_max="​300"​ interevent_duration_max="​300"​ translation_max="​20"/>​
 +                <cluster point_number="​0"/>​
 +                <event gesture_event="​tap"/>​
 +            </​initial>​
 +        </​action>​
 +    </​match> ​      
 +    <​analysis>​
 +        <​algorithm class="​temporalmetric"​ type="​discrete">​
 +            <library module="​double_tap"/>​
 +            <​returns>​
 +                <​property id="​double_tap_x"​ result="​x"/>​
 +                <​property id="​double_tap_y"​ result="​y"/>​
 +                <​property id="​double_tap_n"​ result="​n"/>​
 +            </​returns>​
 +        </​algorithm>​
 +    </​analysis> ​   ​
 +    <​mapping>​
 +        <update dispatch_type="​discrete"​ dispatch_mode="​batch"​ dispatch_interval="​200">​
 +            <​gesture_event ​ type="​double_tap">​
 +                <​property ref="​double_tap_x"/>​
 +                <​property ref="​double_tap_y"/>​
 +                <​property ref="​double_tap_n"/>​
 +            </​gesture_event>​
 +        </​update>​
 +    </​mapping>​
 +</​Gesture>​
editing_double_tap_interevent_duration.txt · Last modified: 2019/01/29 19:06 (external edit)