User Tools

Site Tools


gestures:touch:simple:temporal:single-tap:3-point-tap

3-Point-Tap

(Touch → Temporal → Tap → Three Point Tap Gesture “3-Point-Tap”)



The 3-finger-tap gesture is designed to dispatch a discrete gesture event when three touch points are begin and end in close proximity within well a defined short period of time.
<Gesture id="3-finger-tap" type="tap">
    <match>
        <action>
            <initial>
                <point event_duration_max="200" translation_max="10"/>
                <cluster point_number="3"/>
                <event touch_event="touchEnd"/>
             </initial>
        </action>
    </match>       
    <analysis>
        <algorithm class="temporalmetric" type="discrete">
            <library module="tap"/>
            <returns>
                <property id="tap_x" result="x"/>
                <property id="tap_y" result="y"/>
                <property id="tap_n" result="n"/>
            </returns>
        </algorithm>
    </analysis>    
    <mapping>
        <update dispatch_type="discrete">
            <gesture_event type="tap">
                <property ref="tap_x"/>
                <property ref="tap_y"/>
                <property ref="tap_n"/>
            </gesture_event>
        </update>
    </mapping>
</Gesture>
gestures/touch/simple/temporal/single-tap/3-point-tap.txt · Last modified: 2015/10/08 23:26 by paul