User Tools

Site Tools


gestures:touch:simple:temporal:hold:3-point-hold

3-Point-Hold

(Touch → Temporal → Hold → 3 Point Hold Gesture)

<Gesture id="3-finger-hold" type="hold">
    <match>
        <action>
            <initial>
                <point event_duration_min="500" translation_max="2"/>
                <cluster point_number="3"/>
            </initial>
        </action>
    </match>       
    <analysis>
        <algorithm>
            <library module="hold"/>
            <returns>
                <property id="hold_x" result="x"/>
                <property id="hold_y" result="y"/>
                <property id="hold_n" result="n"/>
            </returns>
        </algorithm>
    </analysis>    
    <mapping>
        <update dispatch_type="discrete" dispatch_reset="cluster_remove">
            <gesture_event type="hold">
                <property ref="hold_x"/>
                <property ref="hold_y"/>
                <property ref="hold_n"/>
        </gesture_event>
        </update>
    </mapping>
</Gesture>
gestures/touch/simple/temporal/hold/3-point-hold.txt · Last modified: 2015/09/14 17:51 (external edit)