User Tools

Site Tools


gestures:touch:simple:temporal:hold:n-hold

N-Hold

(Touch → Temporal → Hold → Simple N Point Hold Gesture)

<Gesture id="n-hold" type="hold">
    <match>
        <action>
            <initial>
                <point event_duration_min="500" translation_max="2"/>
                <cluster point_number="0" point_number_min="1" point_number_max="5"/>
            </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/n-hold.txt · Last modified: 2015/09/14 17:42 (external edit)