User Tools

Site Tools


gestures:touch:simple:temporal:double-tap:1-point-double-tap

1-Point-Double-Tap

(Touch → Temporal → Double-Tap → 1 Point Double Tap Gesture)

<Gesture id="1-finger-double_tap" type="double_tap">
    <match>
        <action>
            <initial>
                <point event_duration_max="300" interevent_duration_max="300" translation_max="20"/>
                <cluster point_number="1"/>
                <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>
gestures/touch/simple/temporal/double-tap/1-point-double-tap.txt · Last modified: 2015/09/14 16:58 (external edit)