User Tools

Site Tools


gestures:touch:context-aware:1-finger-pivot

1-Finger-Pivot

(Touch → Context-Aware → One Point Pivot “1-Finger-Pivot”)

The 1-finger-pivot gesture analyzes the motion of a single touch point cluster and calculates the change in rotation (“pivot_dtheta”) of a pivot arm drawn from the center of the touch object to the touch point.

<Gesture id="1-finger-pivot-inertia" type="pivot">
    <match>
        <action>
            <initial>
                <cluster point_number="1"/>
            </initial>
        </action>
    </match>
    <analysis>
        <algorithm class="kinemetric" type="continuous">
            <library module="pivot"/>
            <returns>
                <property id="pivot_dtheta" result="pivot_dtheta"/>
            </returns>
        </algorithm>
    </analysis>    
    <processing>
        <delta_filter>
            <property ref="pivot_dtheta" active="true" delta_min="0.01" delta_max="10"/>
        </delta_filter>
    </processing>
    <mapping>
        <update dispatch_type="continuous">
            <gesture_event type="pivot">
                <property ref="pivot_dtheta" target="rotate"/>
            </gesture_event>
        </update>
    </mapping>
</Gesture>
gestures/touch/context-aware/1-finger-pivot.txt · Last modified: 2015/09/15 13:02 by glass